summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-05-11 18:41:07 -0400
committerKyle Meyer <kyle@kyleam.com>2014-05-11 18:41:07 -0400
commit241fdb1e67d44cf31de154f85f1465e820bf0f39 (patch)
tree015b95d2efae1c45d929dc08ef209145161b4a08
parentec78ce3309fc5e315140987046e8e78a1df42536 (diff)
downloademacs.d-241fdb1e67d44cf31de154f85f1465e820bf0f39.tar.gz
Automatically enter view-mode for read-only files
-rw-r--r--lisp/init-editing.el2
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)