aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/view.el
diff options
context:
space:
mode:
authorAndreas Schwab <[email protected]>2004-02-06 21:41:45 +0000
committerAndreas Schwab <[email protected]>2004-02-06 21:41:45 +0000
commitdaa3ea8d18fd03d6bd1cb2f37fb991e70934e0ab (patch)
tree49a031e9fced4170f46f712716ce19e67f5e782a /lisp/view.el
parenteb3c144cdb9a063cb24de11f68d2b3b680d5bd3c (diff)
(view-mode-enable): Add view-mode-map to
minor-mode-overriding-map-alist.
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))