diff options
author | Kyle Meyer <kyle@kyleam.com> | 2015-04-06 22:12:09 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2015-04-06 22:12:51 -0400 |
commit | 73e9d5c678c99afba5a4978e538f3065bb09ba17 (patch) | |
tree | f5ba3fad5318f9233ef78a466094641479af6901 | |
parent | aa33678084e8fdb4a80721f6bcf6bc9984bacc81 (diff) | |
download | emacs.d-73e9d5c678c99afba5a4978e538f3065bb09ba17.tar.gz |
Enable abbrevs for programming modes
-rw-r--r-- | lisp/init-abbrev.el | 3 | ||||
-rw-r--r-- | lisp/init-text.el | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/init-abbrev.el b/lisp/init-abbrev.el index 04d0c1a..89de45e 100644 --- a/lisp/init-abbrev.el +++ b/lisp/init-abbrev.el @@ -1,6 +1,9 @@ (setq save-abbrevs 'silently) +(add-hook 'text-mode-hook 'abbrev-mode) +(add-hook 'prog-mode-hook 'abbrev-mode) + (define-abbrev-table 'typo-abbrev-table nil) (abbrev-table-put global-abbrev-table :parents (cons typo-abbrev-table diff --git a/lisp/init-text.el b/lisp/init-text.el index 32105f0..c180cd3 100644 --- a/lisp/init-text.el +++ b/lisp/init-text.el @@ -1,5 +1,4 @@ -(add-hook 'text-mode-hook 'abbrev-mode) (add-hook 'text-mode-hook 'turn-on-auto-fill) (defun km/export-wrapped-text (arg) |