From 149109e4c1b602817bbe14f59f001e03f9fd9cb7 Mon Sep 17 00:00:00 2001 From: Kyle Meyer Date: Sat, 21 Feb 2015 22:06:13 -0500 Subject: Make typo-abbrev-table Previously, I was using global-abbrev-table as an initial capture area for abbrevs and for really common typos. Make separate table for common typos so that global-abbrev-table only serves as capture area. --- lisp/init-abbrev.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lisp/init-abbrev.el') 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 -- cgit v1.2.3