如何告诉 org-mode 在逐字文本中禁用标题?

Dav*_*age 6 emacs org-mode

如何让组织模式不将以星号开头的行解释为标题?我的组织模式文档中有一些逐字文本。某些行以星号开头。组织模式将这些行解释为标题。我不想要那个。

这是带有一些上下文的文本:



    * 20160721 Headline for July 21, 2016

    I created a git repository for rfc-tools.  It's in
    ~/Documents/rfc-tools.

    Renamed grep-rfc-index.sh to search-rfc-index.sh because it searches.
    That it uses grep is irrelevant.

    Wrote a README.md for the project.  Here it is:

    #+BEGIN_SRC text
    ----- BEGIN QUOTED TEXT -----
    This is the README.md for rfc-tools, a collection of programs for
    processing IETF RFCs.

    * fetch-rfcs-by-title.sh downloads into the current directory the RFCs
      whose titles contain the string given on the command line.  Uses an
      rfc-index file in the current directory.  Prefers the PDF version of
      RFCs but will obtain the text version if the PDF is not available.

    * fetch-sip-rfcs.sh downloads RFCs that contain "Session Initiation"
      in their titles into the current directory.

    * search-rfc-index.sh searches an rfc-index file in the current
      directory for the string given on the command line.  The string can
      contain spaces.

    * join-titles.awk turns the contents of an rfc-index file into a
      series of long lines.  Each line begins with the RFC number, then a
      space, then the rest of the entry from the rfc-index.
    ----- END QUOTED TEXT -----
    #+END_SRC


我希望“----- BEGIN QUOTED TEXT -----”和“----- END QUOTED TEXT -----”之间的行是纯文本并从属于标题“20160721 Headline for July 21, 2016"。Org 模式将所有以星号开头的行解释为顶级标题。

顺便说一句,逐字文本是 Markdown。我希望这没关系。

小智 2

为我工作:

    #+BEGIN_SRC markdown
Run Code Online (Sandbox Code Playgroud)

  • 这是答案的三分之一。首先,安装并加载 markdown-mode.el。其次,在 Markdown 代码的每一行前面添加一个空格。现在您可以使用 Cc ' 在文本上调用降价模式。使用另一个抄送 '. 退出降价模式。Markdown 源代码块中的所有内容都已针对 org 模式正确格式化。 (2认同)