Commit c4d9b0d9 authored by Stefan Monnier's avatar Stefan Monnier
Browse files

(view-mode-enable): Don't use make-local-hook.

parent c979fbdf
......@@ -441,7 +441,6 @@ Entry to view-mode runs the normal hook `view-mode-hook'."
"Turn on View mode."
;; Always leave view mode before changing major mode.
;; This is to guarantee that the buffer-read-only variable is restored.
(make-local-hook 'change-major-mode-hook)
(add-hook 'change-major-mode-hook 'view-mode-disable nil t)
(setq view-mode t
view-page-size (view-page-size-default view-page-size)
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