diff options
author | Franck Cuny <franck@fcuny.net> | 2021-02-20 14:56:42 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2021-02-20 14:56:42 -0800 |
commit | d2196616b05d225ba2d056b9c4bfa8f3b556bd37 (patch) | |
tree | 776560aa94c66a7aa4fe8f2a79c71576e94deb31 /emacs | |
parent | emacs: eshell alias (diff) | |
download | emacs.d-d2196616b05d225ba2d056b9c4bfa8f3b556bd37.tar.gz |
emacs: enable read-mode when in RO buffer
Diffstat (limited to '')
-rw-r--r-- | emacs/custom/fcuny-edit.el | 4 |
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) |