diff options
author | William Carroll <wpcarro@gmail.com> | 2019-03-20T15·07+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2019-03-20T15·07+0000 |
commit | a810a7477180b12d5e0ce4f8d13fb35e400099ba (patch) | |
tree | ed73de8e1113e65fbf3b359c302da6c704320154 /configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el | |
parent | 29e19725ac7d30c1674be43c9441bf5dacb224c0 (diff) |
Support global auto-fill-mode
It appears that (auto-fill-mode 1) may be buffer-local. Adding a hook to fundamental-mode to ensure auto-fill-mode is enabled for most buffers. Stay tuned, because this may need to be setup for prog-mode-hook as well. Or neither... we'll see what works.
Diffstat (limited to 'configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el')
-rw-r--r-- | configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el index 5e513cd6f0ee..9ba817d3b56b 100644 --- a/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el +++ b/configs/shared/emacs/.emacs.d/wpc/packages/wpc-misc.el @@ -17,14 +17,11 @@ "s-v" #'x-clipboard-yank "C-S-v" #'x-clipboard-yank) -;; start emacs server so `emacsclient' can work -(server-start) - ;; transparently edit compressed files (auto-compression-mode t) ;; autowrap when over the fill-column -(auto-fill-mode 1) +(add-hook 'fundamental-mode-hook 'turn-on-auto-fill) ;; link to Emacs source code (setq find-function-C-source-directory "~/programming/emacs/src") |