I have a text file that is pretty long. Any easy way to \"undo\" a M-q
(fill-paragraph) on a file that was written and saved a while ago?
For example, I wan
Use the following from my .emacs:
(defun unfill-paragraph ()
(interactive)
(let ((fill-column (point-max)))
(fill-paragraph nil)))
(defun unfill-region ()
(interactive)
(let ((fill-column (point-max)))
(fill-region (region-beginning) (region-end) nil)))
I can't take credit, I googled this years ago.