- publishing free software manuals
The Org Mode 7 Reference Manual
by Carsten Dominik and others
Paperback (6"x9"), 282 pages
ISBN 9781906966089
RRP £9.95 ($14.95)

Sales of this book support the Org project! Get a printed copy>>>

14.2 Editing source code

Use C-c ' to edit the current code block. This brings up a language major-mode edit buffer containing the body of the code block. Saving this buffer will write the new contents back to the Org buffer. Use C-c ' again to exit.

The org-src-mode minor mode will be active in the edit buffer. The following variables can be used to configure the behavior of the edit buffer. See also the customization group org-edit-structure for further configuration options.

If an Emacs major-mode named <lang>-mode exists, where <lang> is the language named in the header line of the code block, then the edit buffer will be placed in that major-mode. This variable can be used to map arbitrary language names to existing major modes.
Controls the way Emacs windows are rearranged when the edit buffer is created.
This variable is especially useful for tangling languages such as Python, in which whitespace indentation in the output is critical.
By default, Org will ask before returning to an open edit buffer. Set this variable to nil to switch without asking.
ISBN 9781906966089The Org Mode 7 Reference ManualSee the print edition