From d2196616b05d225ba2d056b9c4bfa8f3b556bd37 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sat, 20 Feb 2021 14:56:42 -0800 Subject: emacs: enable read-mode when in RO buffer --- emacs/custom/fcuny-edit.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'emacs') 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) -- cgit 1.4.1