From 4b032ecc17238d641ae92a2df33b66d31a645b7f Mon Sep 17 00:00:00 2001 From: larstvei Date: Sat, 17 Sep 2022 13:13:49 +0200 Subject: [PATCH] The opposite of fill paragraph --- init.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.org b/init.org index a571d95..5164e05 100644 --- a/init.org +++ b/init.org @@ -719,6 +719,15 @@ :test 'string-equal))))) #+END_SRC + The opposite of fill paragraph (from [[https://www.emacswiki.org/emacs/UnfillParagraph][EmacsWiki]]), + + #+begin_src emacs-lisp + (defun unfill-paragraph () + (interactive) + (let ((fill-column most-positive-fixnum)) + (fill-paragraph nil (region-active-p)))) + #+end_src + ** Advice An advice can be given to a function to make it behave differently. This