How do you escape the +
to not mean strikethrough in a single file?
For example, when typing
use += 1 instead of ++
how can this not-be-strikethrough'ed?
Escaping the +
with \
as in \+
works well, but it is not by-file.
This behaviour is defined in the org-emphasis-alist
variable.
To disable all markup, just write on your first line:
-*- org-emphasis-alist: nil -*-
To disable only the strike-through:
-*- org-emphasis-alist: (("*" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("~" org-code verbatim) ("+" (:strike-through nil))); -*-
You can also use the syntax:
# Local Variables:
# org-emphasis-alist: (("*" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("~" org-code verbatim) ("+" (:strike-through nil)))
# End:
(See Specifying file variable)
(("*" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("~" org-code verbatim))
without the ("+" (:strike-through nil))
may work too.
Doing so, when you may have a warning when opening the file or reverting the buffer. Please refer to safe file variable.
To disable the warning, when doing M-x customize-variable safe-local-variable-values
click on INS
, and add:
Key: org-emphasis-alist
Value: (("" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("~" org-code verbatim))
Then Apply
or Apply and Save
.
+
via\
. Thanks.