Org-mode: Verbatim Environments

Let's say I would like to have some text in the verbatim environment in org-mode where the table shortcuts are disabled.

For example, consider the following text:

|-- 05102013 | |-- 1826 | |-- 6500 | |-- 6501 | |-- 6502 | |-- 6503 | `-- readme 

If I put it in the EXAMPLE literal folder:

 #+BEGIN_EXAMPLE |-- 05102013 | |-- 1826 | |-- 6500 | |-- 6501 | |-- 6502 | |-- 6503 | `-- readme #+END_EXAMPLE 

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

 |------------+---------| | | -- 1826 | | | -- 6500 | | | -- 6501 | | | -- 6502 | | | -- 6503 | | `-- readme | | 

which I do not want. Does org-mode provide any environments or blocks in which the automatic table creation engine is disabled?

+6
source share
3 answers

You can wrap the text in the source block as follows:

 #+begin_src text |-- 05102013 | |-- 1826 | |-- 6500 | |-- 6501 | |-- 502 | |-- 6503 | `-- readme #+end_src 

The TAB inside the block will not reformat the text as a table, but it will put spaces in the next tab.

If this still annoys you, you can try c instead of text , where TAB will try (and not work) with automatic indentation instead of adding spaces.

+8
source

I was going to offer the same thing as Juancho, except that the specified language will be "fundamental" (instead of "text"), so (almost) nothing will happen.

+4
source

You can use both variants of Juancho or fniessen, however you can use example environments if you first use Cc ' to edit the contents of the block, and not directly in the org buffer. Sample environments are also open as fundamental buffers.

+4
source

Source: https://habr.com/ru/post/946997/


All Articles