summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lisp/init-abbrev.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/lisp/init-abbrev.el b/lisp/init-abbrev.el
index 22cfd0b..04d0c1a 100644
--- a/lisp/init-abbrev.el
+++ b/lisp/init-abbrev.el
@@ -1,6 +1,11 @@
(setq save-abbrevs 'silently)
+(define-abbrev-table 'typo-abbrev-table nil)
+(abbrev-table-put global-abbrev-table :parents
+ (cons typo-abbrev-table
+ (abbrev-table-get global-abbrev-table :parents)))
+
(defun km/abbrev-add-case-global ()
"Define lower abbreviation for the word before point.
Like `add-global-abbrev', but always make the abbreviation the