I am using Spacemacs to write a program in Clojure. I would like to be able to collapse docstrings. I've tried selecting the docstring and pressing z a
, however, that ends up collapsing the entire function body.
Specifically, I would like to be able to turn this:
(defn flip-and-vectorize
"Returns a vector with the arguments flipped so that
`(flip-and-vectorize 1 2)`
returns the following vector
`[2 1]`"
[a b]
[b a])
into something akin to this
(defn flip-and-vectorize
"..."
[a b]
[b a])
Edit:
Even being able to collapse arbitrary lines would be acceptable; meaning the collapsed version of the above function could look something like this:
(defn flip-and-vectorize
...
[a b]
[b a])
This would mean that the collapsing logic would not need to understand what a "docstring" was, but would merely collapse the selected lines.