Commit 92e9557c authored by Lute Kamstra's avatar Lute Kamstra
Browse files

(occur-mode): Use run-mode-hooks.

parent 430663bc
...@@ -693,7 +693,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it. ...@@ -693,7 +693,7 @@ Alternatively, click \\[occur-mode-mouse-goto] on an item to go to it.
(make-local-variable 'occur-revert-arguments) (make-local-variable 'occur-revert-arguments)
(add-hook 'change-major-mode-hook 'font-lock-defontify nil t) (add-hook 'change-major-mode-hook 'font-lock-defontify nil t)
(setq next-error-function 'occur-next-error) (setq next-error-function 'occur-next-error)
(run-hooks 'occur-mode-hook)) (run-mode-hooks 'occur-mode-hook))
(defun occur-revert-function (ignore1 ignore2) (defun occur-revert-function (ignore1 ignore2)
"Handle `revert-buffer' for Occur mode buffers." "Handle `revert-buffer' for Occur mode buffers."
......
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