emacs - turn auto fill mode
authorPeng Li <seudut@gmail.com>
Fri, 19 May 2017 13:57:19 +0000 (21:57 +0800)
committerPeng Li <seudut@gmail.com>
Fri, 19 May 2017 13:57:19 +0000 (21:57 +0800)
emacs.d/config.org

index bf8028e..38c6e74 100644 (file)
@@ -150,6 +150,9 @@ Check out [[http://tapoueh.org/emacs/el-get.html][el-get]].
 
   ;; only highlight selected window
   (setq hl-line-sticky-flag nil)
+
+  (setq-default fill-column 120)
+  (add-hook 'text-mode-hook 'turn-on-auto-fill)
 #+END_SRC
 
 ** Smart Comments