summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon Rische <leon.rische@me.com>2023-05-14 12:56:47 +0200
committerLeon Rische <leon.rische@me.com>2023-05-14 12:56:47 +0200
commit37d2aabcbbdd34a0b13da62fedad59b30d225041 (patch)
tree854e765b75288d339e6d4383cf3c773574405ba9
parent1ce66c21dc131e6059b524a422db5c85256a90f6 (diff)
Set buffer to read-only in `org-fc-demo`
-rw-r--r--org-fc-core.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/org-fc-core.el b/org-fc-core.el
index 1b6a608..e9c6863 100644
--- a/org-fc-core.el
+++ b/org-fc-core.el
@@ -664,6 +664,8 @@ Positions are shuffled in a way that preserves the order of the
(interactive)
(let ((path (expand-file-name "demo.org" org-fc-source-path)))
(with-current-buffer (find-file path)
+ ;; Prevent any changes to the demo file
+ (read-only-mode 1)
(org-fc-review-buffer))))
;;; Contexts