projects
/
~bandali
/
configs
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
181ffc1
)
emacs: open read-only buffers in view-mode
author
Amin Bandali
<bandali@gnu.org>
Wed, 29 May 2019 01:39:17 +0000
(21:39 -0400)
committer
Amin Bandali
<bandali@gnu.org>
Wed, 29 May 2019 01:39:17 +0000
(21:39 -0400)
.emacs.d/init.el
patch
|
blob
|
blame
|
history
diff --git
a/.emacs.d/init.el
b/.emacs.d/init.el
index
b67efd0
..
9ccc3bb
100644
(file)
--- 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))