Org mode Markup Language

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.