diff options
author | Gerd Moellmann <gerd@gnu.org> | 2000-07-26 13:03:26 +0000 |
---|---|---|
committer | Gerd Moellmann <gerd@gnu.org> | 2000-07-26 13:03:26 +0000 |
commit | dfdbf5b691e7d7f21a9bacd27b4afdd86b13e04f (patch) | |
tree | b11c7d8d1e252e85d9b029fe1255aaf1f0d2301c /lisp/progmodes/m4-mode.el | |
parent | dd717ef272aedd07a5aab90c57d4a5f8fdd2f581 (diff) | |
download | emacs-dfdbf5b691e7d7f21a9bacd27b4afdd86b13e04f.tar.gz |
(m4-mode-abbrev-table): New variable.
(m4-mode): Set local-abbrev-table to m4-mode-abbrev-table.
Diffstat (limited to 'lisp/progmodes/m4-mode.el')
-rw-r--r-- | lisp/progmodes/m4-mode.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/progmodes/m4-mode.el b/lisp/progmodes/m4-mode.el index 23c882a6881..78c32490e1c 100644 --- a/lisp/progmodes/m4-mode.el +++ b/lisp/progmodes/m4-mode.el @@ -108,6 +108,12 @@ (define-key map "\C-c\C-c" 'comment-region) map)) +(defvar m4-mode-abbrev-table nil + "Abbrev table used while in text mode.") + +(unless m4-mode-abbrev-table + (define-abbrev-table 'm4-mode-abbrev-table ())) + (defun m4-m4-buffer () "send contents of the current buffer to m4" (interactive) @@ -134,7 +140,7 @@ (setq comment-start "#") (make-local-variable 'parse-sexp-ignore-comments) (setq parse-sexp-ignore-comments t) - + (setq local-abbrev-table m4-mode-abbrev-table) (make-local-variable 'font-lock-defaults) (setq major-mode 'm4-mode |