branch: externals/cm-mode
commit 9011c6eb7a80ad93341b897eb779deb59726d353
Author: Joost Kremers <[email protected]>
Commit: Joost Kremers <[email protected]>
Make `cm-read-only-annotations' default to t.
Also update the doc string.
---
cm-mode.el | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/cm-mode.el b/cm-mode.el
index 6ddf2ba036..1c4205f540 100644
--- a/cm-mode.el
+++ b/cm-mode.el
@@ -155,15 +155,18 @@ it is added automatically."
(string :tag "Author")))
(make-variable-buffer-local 'cm-author)
-(defcustom cm-read-only-annotations nil
- "Make annotations read-only. Useful if you 'criticise' later,
-not so useful if you use markup while writing."
+(defcustom cm-read-only-annotations t
+ "Make annotations read-only.
+By default, annotation markers are read-only, so they cannot be
+overwritten. This interferes with reformatting, however, so you
+can disable this behaviour. Note that if you change the value of
+this variable for a particular buffer, you may need to deactivate
+and reactivate `cm-mode'."
:group 'criticmarkup
:safe 'booleanp
:type 'boolean)
(make-variable-buffer-local 'cm-read-only-annotations)
-
(defface cm-addition-face '((t (:inherit success)))
"Face for CriticMarkup additions."
:group 'criticmarkup-faces)