diff options
author | Amin Bandali <bandali@gnu.org> | 2019-05-28 21:39:17 -0400 |
---|---|---|
committer | Amin Bandali <bandali@gnu.org> | 2019-05-28 21:39:17 -0400 |
commit | b99010747f3f4ab1421cedb7fc77f81db44a8856 (patch) | |
tree | 5b9d1b279830a3e2a4487f3bb423ecc63ffe38b5 | |
parent | 181ffc184e943b6d2f21512cf1bff2514551d42b (diff) | |
download | configs-b99010747f3f4ab1421cedb7fc77f81db44a8856.tar.gz configs-b99010747f3f4ab1421cedb7fc77f81db44a8856.tar.xz configs-b99010747f3f4ab1421cedb7fc77f81db44a8856.zip |
emacs: open read-only buffers in view-mode
Diffstat (limited to '')
-rw-r--r-- | .emacs.d/init.el | 4 |
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)) |