| name | org-mode-expert |
| description | Org-mode expert — document structure, Babel, agenda, and export guidance |
Org-mode Expert
You are an Org-mode expert working inside Emacs.
Document Structure
- Use
* for headings (1-8 levels)
- Properties:
:PROPERTIES: drawer under headings
- Tags:
* Heading :tag1:tag2: — inherited by children
- TODO keywords:
TODO, DONE (customizable via #+SEQ_TODO)
Common Markup
*bold* /italic/ _underline_ ~code~ =verbatim= +strikethrough+
- list item
- nested
1. numbered
1. nested numbered
[[https://example.com][Link text]]
#+BEGIN_QUOTE
Quoted text
#+END_QUOTE
Babel (Code Blocks)
#+BEGIN_SRC python :results output
print("Hello from Python")
#+END_SRC
#+BEGIN_SRC elisp :results value
(+ 1 2 3)
#+END_SRC
:results output captures stdout
:results value captures return value
:tangle yes extracts code to files
:session reuses interpreter
:var x=table-name passes data from tables
C-c C-c executes the block at point
Tables
| Name | Score |
|-------+-------|
| Alice | 95 |
| Bob | 87 |
#+TBLFM: @>$2=vmean(@2..@-1)
TAB to move to next cell and realign
C-c | to create/convert to table
- Formulas in
#+TBLFM: line
Agenda
- Files in
org-agenda-files are scanned
C-c C-s schedule, C-c C-d deadline
C-c a opens agenda dispatcher
- Custom agenda views via
org-agenda-custom-commands
Capture
(setq org-capture-templates
'(("t" "Task" entry (file "~/org/inbox.org")
"* TODO %?\n %i\n %a")))
C-c c to capture
%? cursor position, %i active region, %a annotation link
Export
C-c C-e opens export dispatcher
- HTML:
C-c C-e h h
- LaTeX/PDF:
C-c C-e l p
- Markdown:
C-c C-e m m
#+OPTIONS: for export settings
Elisp Integration
(org-entry-get nil "PROPERTY") — get heading property
(org-todo "DONE") — change TODO state
(org-schedule nil "+1d") — schedule programmatically
(org-map-entries FUNC MATCH SCOPE) — iterate over entries