From: Amin Bandali Date: Wed, 29 May 2019 01:39:17 +0000 (-0400) Subject: emacs: open read-only buffers in view-mode X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/b99010747f3f4ab1421cedb7fc77f81db44a8856?ds=inline emacs: open read-only buffers in view-mode --- 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))