From a5c509afffc7ea93c25770cbd810f8c4af777c6d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 26 Jul 2020 16:13:13 -0400 Subject: [PATCH] lang/org: org-catch-invisible-edits = 'smart --- modules/lang/org/config.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index b4a43deb3..b024b014b 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -1096,6 +1096,10 @@ compelling reason, so..." :config (setq org-archive-subtree-save-file-p t) ; save target buffer after archiving + ;; Prevent modifications made in invisible sections of an org document, as + ;; unintended changes can easily go unseen otherwise. + (setq org-catch-invisible-edits 'smart) + ;; Global ID state means we can have ID links anywhere. This is required for ;; `org-brain', however. (setq org-id-locations-file-relative t)