From c76e77e47e47eba2541ab1938020dba5d9e5ac74 Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Tue, 12 Dec 2017 14:10:37 -0500 Subject: [PATCH] [emacs] Add auto-fill mode --- .emacs.d/emacs.org | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.emacs.d/emacs.org b/.emacs.d/emacs.org index e9e60f6..78b0a71 100644 --- a/.emacs.d/emacs.org +++ b/.emacs.d/emacs.org @@ -954,6 +954,16 @@ directive. '(text-mode-hook org-mode-hook))) #+END_SRC +*** Auto-Fill +Automatically wrap paragraphs while writing in text modes. + +#+name: packages +#+BEGIN_SRC emacs-lisp + (mapcar (lambda (mode-hook) + (add-hook mode-hook #'auto-fill-mode)) + '(text-mode-hook + org-mode-hook)) +#+END_SRC *** Unfill Re-flowing paragraphs with =fill-paragraph= is nice, but there are occasions when it's useful to do the inverse, and get rid of the line