From 23ae9512803bd79b35a99e0f3d0780d328217e38 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Tue, 11 Jun 2024 09:38:28 +0200 Subject: [PATCH] Open more `outline-mode' files in `read-only-mode' --- README.org | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.org b/README.org index a0fd08a..ea376e2 100644 --- a/README.org +++ b/README.org @@ -2064,7 +2064,9 @@ file. ;; GAV: `fnsd' is nil during Org export to LaTeX. (when fnsd (setq fnsd (file-name-nondirectory fnsd)) - (when (member fnsd '("NEWS" "ORG-NEWS" "PROBLEMS")) + ;; These are files from the EMACS and ORG git repositories. + (when (member fnsd '("EGLOT-NEWS" "NEWS" "ORG-NEWS" "PROBLEMS" + "org.org" "org-guide.org" "org-manual.org")) (message "Visit `%s' in `read-only-mode'" fnsd) (read-only-mode +1))))) (add-hook 'outline-mode-hook #'maybe-read-only-in-outline-mode)