In the Emacs org mode, the _ character is escaped as a markup language by default. Sometimes, if you only writeArticleThis default escape will make it very inconvenient for you, especially when you write an article about technology, where the variable name contains a lot of underscores. Then you will say, "Oh, my God! Should I mark them one by one without _ escaping? "
How do I set the org mode to not escape _ characters by default?
Solution for a single org File
You can disable this function with the following settings at the beginning of an org file.
# + Options: ^: Nil
If you need more convenient settings, you can change the above
# + Options: ^ :{}
In this way, when you write
A _ {B}
After _, the content enclosed by {} Will be escaped and writtenA_ BIn normal mode.
Org sites Solution
If you use org sites to take notes and want to keep all org files of a site unescaped, you can configure the following sentence in the org sites configuration file, hundreds of times:
(Setq org-export-with-Sub-superscripts nil)
You can also set this attribute in org sites to act on only one site:
: Sub-superscript Nil
If you want to use the relatively intelligent {} method like above, you can set it
: Sub-superscript {}
Or you can directly use elisp to set global attributes:
(Setq org-export-with-Sub-superscripts '{})
This will be escaped.