emacs: open read-only buffers in view-mode
authorAmin Bandali <bandali@gnu.org>
Wed, 29 May 2019 01:39:17 +0000 (21:39 -0400)
committerAmin Bandali <bandali@gnu.org>
Wed, 29 May 2019 01:39:17 +0000 (21:39 -0400)
.emacs.d/init.el

index b67efd0..9ccc3bb 100644 (file)
@@ -445,6 +445,10 @@ For disabling the behaviour for certain buffers and/or modes."
 ;; allow scrolling in Isearch
 (setq isearch-allow-scroll t)
 
 ;; 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))
 
 (use-feature vc
   :bind ("C-x v C-=" . vc-ediff))