aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/view.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/view.el')
-rw-r--r--lisp/view.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/view.el b/lisp/view.el
index 1ee6014c73..6d7ad4aa46 100644
--- a/lisp/view.el
+++ b/lisp/view.el
@@ -463,6 +463,9 @@ Entry to view-mode runs the normal hook `view-mode-hook'."
(if (buffer-file-name)
(file-name-nondirectory (buffer-file-name))
(buffer-name))))
+ ;; Override major mode's scrolling commands.
+ (add-to-list 'minor-mode-overriding-map-alist
+ (cons 'view-mode view-mode-map))
(force-mode-line-update)
(run-hooks 'view-mode-hook))