From 254412d0a0ae87f799b40a10edc79f0cc5d57223 Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Thu, 13 Apr 2017 18:40:52 -0400 Subject: [PATCH] Auto-fill in emacs --- emacs/init.el | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/emacs/init.el b/emacs/init.el index 044429f..deb36df 100644 --- a/emacs/init.el +++ b/emacs/init.el @@ -76,6 +76,7 @@ '(custom-safe-themes (quote ("ce08249e5bb367822a811e84a7a9cc44c4228605ab7cbbb6896039529720809a" "2b280ad6cde9097a8677663009decae239a35d70a180d2321baf9e467696f6c8" default))) + '(fill-column 80) '(global-subword-mode t) '(indent-tabs-mode nil) '(inhibit-startup-buffer-menu t) @@ -261,3 +262,7 @@ they line up with the line containing the corresponding opening bracket." (require 'js2-mode) (add-to-list 'auto-mode-alist '("/tmp/mutt.*" . mail-mode)) + + +(add-hook 'markdown-mode-hook 'turn-on-auto-fill) +(add-hook 'tex-mode-hook 'turn-on-auto-fill)