summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-02-20 14:56:42 -0800
committerFranck Cuny <franck@fcuny.net>2021-02-20 14:56:42 -0800
commitd2196616b05d225ba2d056b9c4bfa8f3b556bd37 (patch)
tree776560aa94c66a7aa4fe8f2a79c71576e94deb31
parentemacs: eshell alias (diff)
downloademacs.d-d2196616b05d225ba2d056b9c4bfa8f3b556bd37.tar.gz
emacs: enable read-mode when in RO buffer
Diffstat (limited to '')
-rw-r--r--emacs/custom/fcuny-edit.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/emacs/custom/fcuny-edit.el b/emacs/custom/fcuny-edit.el
index 8ca5214..a65682b 100644
--- a/emacs/custom/fcuny-edit.el
+++ b/emacs/custom/fcuny-edit.el
@@ -36,4 +36,8 @@
 ;; don't assume that sentences should have two spaces after period.
 (setq sentence-end-double-space nil)
 
+;; switch to view-mode whenever you are in a read-only buffer (e.g.
+;; switched to it using C-x C-q).
+(setq view-read-only t)
+
 (provide 'fcuny-edit)