Commit 1a96d1f3 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(edit-abbrevs-mode): Use kill-all-local-variables and run-mode-hooks.

parent 2702394e
...@@ -134,9 +134,11 @@ Otherwise display all abbrevs." ...@@ -134,9 +134,11 @@ Otherwise display all abbrevs."
"Major mode for editing the list of abbrev definitions. "Major mode for editing the list of abbrev definitions.
\\{edit-abbrevs-map}" \\{edit-abbrevs-map}"
(interactive) (interactive)
(kill-all-local-variables)
(setq major-mode 'edit-abbrevs-mode) (setq major-mode 'edit-abbrevs-mode)
(setq mode-name "Edit-Abbrevs") (setq mode-name "Edit-Abbrevs")
(use-local-map edit-abbrevs-map)) (use-local-map edit-abbrevs-map)
(run-mode-hooks 'edit-abbrevs-mode-hook))
(defun edit-abbrevs () (defun edit-abbrevs ()
"Alter abbrev definitions by editing a list of them. "Alter abbrev definitions by editing a list of them.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment