Commit 30d33965 authored by Lute Kamstra's avatar Lute Kamstra
Browse files

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

parent d0859c9a
......@@ -904,11 +904,12 @@ Number of entries for each category is given by `todo-print-priorities'."
\\{todo-mode-map}"
(interactive)
(kill-all-local-variables)
(setq major-mode 'todo-mode)
(setq mode-name "TODO")
(use-local-map todo-mode-map)
(easy-menu-add todo-menu)
(run-hooks 'todo-mode-hook))
(run-mode-hooks 'todo-mode-hook))
(eval-when-compile
(defvar date)
......
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