Last active
November 19, 2015 13:57
-
-
Save jletourneau/6291ede3d85ad1e84347 to your computer and use it in GitHub Desktop.
Unfilling paragraphs in Elisp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun unfill-region (start end) | |
"Unfill the current region; i.e. remove all newlines within paragraphs. | |
If an active region is not present, unfill the entire buffer." | |
(interactive "r") | |
(let ((fill-column (point-max))) | |
(if (use-region-p) | |
(fill-region start end) | |
(fill-region (point-min) (point-max))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment