组织模式:逐字环境

Ame*_*ina 7 emacs org-mode

假设我想在org-mode中的逐字环境中有一些文本,其中表快捷方式被禁用.

例如,请考虑以下文本:

|-- 05102013
|   |-- 1826
|   |-- 6500
|   |-- 6501
|   |-- 6502
|   |-- 6503
|   `-- readme
Run Code Online (Sandbox Code Playgroud)

如果我把它放在一个EXAMPLE文字文件夹中:

#+BEGIN_EXAMPLE
|-- 05102013
|   |-- 1826
|   |-- 6500
|   |-- 6501
|   |-- 6502
|   |-- 6503
|   `-- readme
#+END_EXAMPLE
Run Code Online (Sandbox Code Playgroud)

and I accidentally press <TAB> on any line in the text above. org-mode automatically re-organizes the text to make it look like a table:

|------------+---------|
|            | -- 1826 |
|            | -- 6500 |
|            | -- 6501 |
|            | -- 6502 |
|            | -- 6503 |
| `-- readme |         |
Run Code Online (Sandbox Code Playgroud)

which I don't want. Does org-mode provide any environments or blocks in which the automatic table-creation mechanism is disabled?

Jua*_*cho 8

您可以将文本包装在源块中,如下所示:

#+begin_src text
  |-- 05102013
  |   |-- 1826
  |   |-- 6500
  |   |-- 6501
  |   |-- 502
  |   |-- 6503
  |   `-- readme
#+end_src
Run Code Online (Sandbox Code Playgroud)

TAB 块内部不会将文本重新格式化为表格,但会在下一个制表位上插入空格.

如果这仍然让你烦恼,你可以尝试c代替text,TAB尝试(并失败)自动缩进而不是添加空格.


fni*_*sen 5

我会提出与Juancho相同的东西,除了指定的语言将是"基本的"(而不是"文本"),所以(几乎)什么都不会发生.


Jon*_*pin 5

您可以使用Juancho或fniessen建议,但是如果您C-c '首先使用编辑块的内容而不是直接在组织缓冲区内,则可以使用示例环境.示例环境也作为fundamental缓冲区打开.