summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-abbrev.el3
-rw-r--r--lisp/init-text.el1
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)