Emacs: Use abbrev-mode in text-mode only by default

master
Pierre Neidhardt 2017-06-30 17:23:37 +01:00
parent ef782a1da1
commit a4b2053c97
1 changed files with 4 additions and 2 deletions

View File

@ -111,8 +111,10 @@
;;; Hippie expand
;; (global-set-key (kbd "M-/") 'hippie-expand)
;;; Abbreviation support
(setq-default abbrev-mode t)
;;; Abbreviation is like snippets: annoying at times, especially in
;;; prog-mode. They are useful in text mode to avoid the sprawling of
;;; abbreviations.
(add-hook 'text-mode-hook 'abbrev-mode)
;;; Auto-fill
(when (getenv "MANWIDTH")