This chapter several topics relating to the Emacs editor.

Leo updates @clean trees using an algorithm that could not be duplicated in org mode.

Leo can automatically import and export Emacs org-mode (.org) files. Nodes like:

@auto - org - mode < path to . org file >

or equivalently:

@auto - org < path to . org file >

import the org-mode file as a Leo outline.

These nodes work like other @auto nodes: when Leo loads an outline, Leo reads the .org file into the @auto-org-mode tree. When Leo writes an outline, Leo writes any @auto-org-mode tree back to the org-mode file.

After creating an @auto-org-mode node by hand, be sure to use Leo’s refresh-from-disk command to populate the node. Do this before saving the .leo file. If you try to save an empty @auto-org-mode node Leo will warn you that you are about to overwrite the file.