summaryrefslogtreecommitdiffstats
path: root/.emacs.d
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-28 21:39:17 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-28 21:39:17 -0400
commitb99010747f3f4ab1421cedb7fc77f81db44a8856 (patch)
tree5b9d1b279830a3e2a4487f3bb423ecc63ffe38b5 /.emacs.d
parent181ffc184e943b6d2f21512cf1bff2514551d42b (diff)
downloadconfigs-b99010747f3f4ab1421cedb7fc77f81db44a8856.tar.gz
configs-b99010747f3f4ab1421cedb7fc77f81db44a8856.tar.xz
configs-b99010747f3f4ab1421cedb7fc77f81db44a8856.zip
emacs: open read-only buffers in view-mode
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/init.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index b67efd0..9ccc3bb 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -445,6 +445,10 @@ For disabling the behaviour for certain buffers and/or modes."
;; allow scrolling in Isearch
(setq isearch-allow-scroll t)
+;; open read-only file buffers in view-mode
+;; (enables niceties like `q' for quit)
+(setq view-read-only t)
+
(use-feature vc
:bind ("C-x v C-=" . vc-ediff))