16.1 Completion
Org has in-buffer completions. Unlike minibuffer completions, which are useful for quick command interactions, Orgβs in-buffer completions are more suitable for content creation in Org documents. Type one or more letters and invoke the hot key to complete the text in-place. Depending on the context and the keys, Org offers different types of completions. No minibuffer is involved. Such mode-specific hot keys have become an integral part of Emacs and Org provides several shortcuts.
M-TAB
β
Complete word at point.
- At the beginning of an empty headline, complete TODO keywords.
- After β
\
β, complete TeX symbols supported by the exporter. - After β
:
β in a headline, complete tags. Org deduces the list of tags from the βTAGS
β in-buffer option (see Setting Tags), the variableorg-tag-alist
, or from all tags used in the current buffer. - After β
:
β and not in a headline, complete property keys. The list of keys is constructed dynamically from all keys used in the current buffer. - After β
[[
β, complete link abbreviations (see Link Abbreviations). - After β
[[*
β, complete headlines in the current buffer so that they can be used in search links like: β[[*find this headline]]
β - After β
#+
β, complete the special keywords like βTYP_TODO
β or file-specific βOPTIONS
β. After option keyword is complete, pressingM-TAB
again inserts example settings for this keyword. - After β
STARTUP
β keyword, complete startup items. - When point is anywhere else, complete dictionary words using Ispell.