Wrapping (filling) a long list of lines in Emacs (clojure -mode)
In Emacs (in Clojure mode) I want to populate this:
(def items
["freezing" "drum" "lean" "deputy" "deputy" "session" "critic" "ace" "rat" "racket" "trap" "inconvenient" "guidance" "ruins"])
To make it look like this:
(def items
["freezing" "drum" "lean" "deputy" "deputy" "session" "critic" "ace"
"rat" "racket" "trap" "inconvenient" "guidance" "ruins"])
I am looking for a function to do this. I have tried, unsuccessfully:
-
M-q
(for exampleparedit-reindent-defun
) -
C-u M-q
(for exampleparedit-reindent-defun
) -
M-x fill-paragraph
-
C-u M-x fill-paragraph
+3
source to share
2 answers
lispy-fill
can do it.
The gif below fill-column
is in 70
and:
- M-q fills in
- fand hmove the cursor
- O un-fill
+1
source to share