diff options
author | Kyle Meyer <kyle@kyleam.com> | 2014-05-11 18:41:07 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2014-05-11 18:41:07 -0400 |
commit | 241fdb1e67d44cf31de154f85f1465e820bf0f39 (patch) | |
tree | 015b95d2efae1c45d929dc08ef209145161b4a08 | |
parent | ec78ce3309fc5e315140987046e8e78a1df42536 (diff) | |
download | emacs.d-241fdb1e67d44cf31de154f85f1465e820bf0f39.tar.gz |
Automatically enter view-mode for read-only files
-rw-r--r-- | lisp/init-editing.el | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el index 1dcfc87..e083076 100644 --- a/lisp/init-editing.el +++ b/lisp/init-editing.el @@ -11,6 +11,8 @@ (setq ace-jump-mode-scope 'frame) +(setq view-read-only t) + (eval-after-load 'view '(progn (define-key view-mode-map "l" 'recenter-top-bottom) |