Org-mode notes
Read and write Emacs Org files, with TODO states and priorities in colour.
What it shows
Read an Org-mode file by writing each of its marks as a rule.
What you learn
Lines that never print, headlines that fold, words that become badges, marks kept on the page, tables split into cells, named blocks.
Try this
- Change
NEXTtoDONEin the gallery headline, and its badge turns green.
Studio notes, week 38
This week
TODO [#A] Renew the studio lease admin
NEXT [#A] Send the gallery three pieces and a statement studio
TODO [#B] Book the photographer for the allotment series studio
TODO [#C] Order more linen canvas supplies
DONE Hang the sketches in the café window studio
Landlord wants a two-year term this time. Ask for a break clause after year one. The gallery needs a short statement: draft it in statement.self.
Projects
Allotment series painting
- Sketches from the allotments, morning light
- Colour studies, four small panels
- Large canvas, 120 by 90
- Frame and photograph
| Piece | Stage | Hours |
| Morning frost | done | 14 |
| Bean rows | underpainting | 6 |
| Last light | sketch | 2 |
Palette notes
Keep the greys warm: mix from burnt umber and ultramarine, never from black. The last roll of linen is stored flat, on the top shelf under the bench.
Paint the light, not the leaves.
Website admin
- Photos at 2400 px on the long side
- One page per series, newest first
- Prices on request, never on the page
A tiny script renames the photos before upload. Run it with python rename.py from the series folder:
from pathlib import Path
for i, p in enumerate(sorted(Path("photos").glob("*.jpg")), 1):
p.rename(p.with_name(f"allotment-{i:02}.jpg"))
The gallery's guidelines for images are at https://example.com/gallery/submissions.
Next week
- Two mornings at the allotments, weather permitting
- Start the large canvas
- Frame the colour studies
How it's made
- This is an Org-mode file, the format of Emacs's Org mode, and the rules block reads every mark in it. There is no Markdown here.
- Each star line is a headline you can fold. TODO, NEXT and DONE are word rules that draw a badge, and
[#A]is a priority. - The words at the right of a headline are
:tags:. Dates in angle brackets are timestamps, andSCHEDULED:andDEADLINE:lines plan a headline. #+TITLE:and the other#+lines are the file's details. Drawers between:PROPERTIES:and:END:are hidden.
Try it yourself
- Change
NEXTtoDONEin the gallery headline. Its badge turns green. - Change
- [ ] Large canvasto- [X] Large canvas. The box is ticked and the line is struck through. - Add
:urgent:at the end of a headline. A tag appears at the right of it. - Add the line
** TODO [#B] Varnish the frost painting :studio:under This week. A new row appears with its badge, and it folds like the others.
~~~ selfscribe
# Lesson: Read an Org-mode file by writing each of its marks as a rule.
# You learn: lines that never print, headlines that fold, words that become badges, marks kept on the page, tables split into cells, named blocks.
# Try this: change `NEXT` to `DONE` in the gallery headline, and its badge turns green.
# summary: Read and write Emacs Org files, with TODO states and priorities in colour.
# category: syntax
# tags: document, advanced, work
# uses: markup, table
#
# No `use markdown` here: every mark on the page comes from the rules below.
set title Org-mode notes
# ---- Colours, each with its shade for dark pages ------------------------------------
palette
heading #1c64d8 dark #74a7ff
sub #6741d9 dark #b197fc
minor #0c7c7b dark #3cc7c6
late #c92a2a dark #ff8787
note #0c7c7b dark #3cc7c6
next #c2410c dark #ff922b
done #2f7d3a dark #69db7c
hair color-mix(in srgb, currentColor 12%, transparent)
# ---- "#+TITLE: …", "#+AUTHOR: …", "#+DATE: …": the document's own details -------------
# `keep` leaves the "#+AUTHOR:" mark on the page; without it the mark is dropped.
# A heading takes its face, colour and space above from values the page reads, so a rule sets those.
class org-meta { font: 0.8em/1.6 var(--doc-font-mono); opacity: 0.6 }
line #+TITLE: _ -> h1.org-title { --doc-font-heading: var(--doc-font, Georgia, serif) } as org-title
line #+AUTHOR: _ -> div.org-meta keep as org-author
line #+DATE: _ -> div.org-meta keep { margin-bottom: 1.4em } as org-date
# "# text": a comment. `hidden` drops the line from the page.
line # _ -> hidden
# ---- "* Headline": one star per level, and each folds -------------------------------
# A second-level headline is a row of the week: a hairline above it and no gap.
line * _ -> h2.org-h1 fold 1 { --doc-heading: var(--heading) } as org-h1
line ** _ -> h3.org-h2 fold 2 { --doc-heading: inherit; --doc-heading-gap: 0; --doc-font-heading: var(--doc-font-ui); padding-top: 0.75em; border-top: 1px solid var(--hair) } as org-h2
line *** _ -> h4.org-h3 fold 3 { --doc-heading: var(--minor) } as org-h3
# ---- TODO, NEXT, DONE, [#A], [2/4] and :tags: in a headline ----------------------------
# The three states share one look, `state`, and each adds its own colour.
class state { font: 700 0.62em/1 var(--doc-font-mono); padding: 0.35em 0.5em; margin-right: 0.3em; border-radius: 4px; vertical-align: 0.2em }
word TODO -> span.state { background: var(--late); color: var(--on-late) } as org-todo
word NEXT -> span.state { background: var(--next); color: var(--on-next) } as org-next
word DONE -> span.state { background: var(--done); color: var(--on-done) } as org-done
inline [#_] -> span.org-prio keep { font: 700 0.62em/1 var(--doc-font-mono); vertical-align: 0.2em; margin-right: 0.3em; opacity: 0.55 } as org-prio
inline [_/_] -> span.org-cookie keep { font: 600 0.62em/1 var(--doc-font-mono); vertical-align: 0.2em; padding: 0.3em 0.5em; border-radius: 999px; background: var(--hair) } as org-cookie
inline :_: -> span.org-tag bound { float: right; font: 500 0.6em/1 var(--doc-font-mono); padding: 0.5em 0.65em; margin-top: 0.15em; border-radius: 999px; background: var(--hair) } as org-tag
# ---- "SCHEDULED:", "DEADLINE:", "CLOSED:" with <2026-09-14 Mon> and [2026-09-09 Wed] --------
class org-plan { font: 0.78em/1.6 var(--doc-font-mono); margin: -0.3em 0 0.75em }
line SCHEDULED: _ -> div.org-plan keep { opacity: 0.75 } as org-scheduled
line DEADLINE: _ -> div.org-plan keep { color: var(--late) } as org-deadline
line CLOSED: _ -> div.org-plan keep { opacity: 0.5 } as org-closed
inline <_> -> time.org-ts keep { color: var(--sub) } as org-ts
inline [_] -> time.org-inactive keep
# A drawer of properties is for the computer, not the reader: hidden, and nothing inside is read.
block :PROPERTIES: ... :END: -> hidden verbatim
# ---- Text marks: *bold* /italic/ _underline_ =verbatim= ~code~ +strike+ and [[links]] ----
# `bound` keeps a mark from matching inside a word, so a path like a/b/c stays as it is.
inline *_* -> b bound
inline /_/ -> i bound
inline \__\_ -> u bound
inline =_= -> code verbatim bound
inline ~_~ -> code verbatim bound
inline +_+ -> s bound
inline [[_][_]] -> a href=_1 _2
inline [[_]] -> a href=_1 _1
# ---- "- [ ] item" boxes, "- item" and "1. item" lists, "| a | b |" tables -----------------
# `nest` puts a more-indented line inside the item above it.
class org-box { list-style: none; margin-left: -1.2em }
line - [ ] _ -> li.org-box group ul nest input=checkbox as org-box
line - [X] _ -> li.org-box group ul nest input=checkbox checked { opacity: 0.6; text-decoration: line-through } as org-box-done
line - _ -> li group ul nest
line _#. _ -> li group ol nest
line | _ | -> tr group table split "|" td
line |-_| -> hidden
# ---- "#+BEGIN_SRC python" … "#+END_SRC": blocks for code, quotes and notes ---------------
# The underscores in BEGIN\_SRC are escaped: a bare _ would be a slot.
block #+BEGIN\_SRC _ ... #+END\_SRC -> code lang=_1 verbatim
block #+BEGIN\_QUOTE ... #+END\_QUOTE -> blockquote
block #+BEGIN\_NOTE ... #+END\_NOTE -> aside.org-note { margin: 1em 0; padding: 0.7em 1em 0.1em; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--note) 40%, transparent); background: color-mix(in srgb, var(--note) 8%, transparent) } as org-note
~~~
#+TITLE: Studio notes, week 38
#+AUTHOR: Sam Iwu
#+DATE: <2026-09-14 Mon>
# Lines starting with a hash and a space are comments: this one never prints.
* This week [1/5]
** TODO [#A] Renew the studio lease :admin:
DEADLINE: <2026-09-18 Fri>
:PROPERTIES:
:LOCATION: Unit 4, Mill Lane
:END:
** NEXT [#A] Send the gallery three pieces and a statement :studio:
SCHEDULED: <2026-09-14 Mon>
** TODO [#B] Book the photographer for the allotment series :studio:
SCHEDULED: <2026-09-16 Wed>
** TODO [#C] Order more linen canvas :supplies:
** DONE Hang the sketches in the café window :studio:
CLOSED: [2026-09-14 Mon]
Landlord wants a /two-year/ term this time. Ask for a break clause after year one. The gallery needs a *short* statement: draft it in [[statement.self][statement.self]].
* Projects
** Allotment series [2/4] :painting:
- [X] Sketches from the allotments, morning light
- [X] Colour studies, four small panels
- [ ] Large canvas, 120 by 90
- [ ] Frame and photograph
| Piece | Stage | Hours |
|-------+-------+-------|
| Morning frost | done | 14 |
| Bean rows | underpainting | 6 |
| Last light | sketch | 2 |
*** Palette notes
Keep the greys _warm_: mix from =burnt umber= and =ultramarine=, never from black. The last roll of linen is stored flat, +on the top shelf+ under the bench.
#+BEGIN_QUOTE
Paint the light, not the leaves.
#+END_QUOTE
** Website :admin:
- Photos at 2400 px on the long side
- One page per series, newest first
- Prices on request, never on the page
A tiny script renames the photos before upload. Run it with ~python rename.py~ from the series folder:
#+BEGIN_SRC python
from pathlib import Path
for i, p in enumerate(sorted(Path("photos").glob("*.jpg")), 1):
p.rename(p.with_name(f"allotment-{i:02}.jpg"))
#+END_SRC
The gallery's guidelines for images are at [[https://example.com/gallery/submissions]].
* Next week
1. Two mornings at the allotments, weather permitting
2. Start the large canvas
3. Frame the colour studies
#+BEGIN_NOTE
Review again on <2026-09-18 Fri>. Anything still undated by then gets a date or gets dropped.
#+END_NOTE
* How it's made
- This is an Org-mode file, the format of Emacs's Org mode, and the rules block reads every mark in it. There is no Markdown here.
- Each star line is a headline you can fold. TODO, NEXT and DONE are word rules that draw a badge, and =[#A]= is a priority.
- The words at the right of a headline are =:tags:=. Dates in angle brackets are timestamps, and =SCHEDULED:= and =DEADLINE:= lines plan a headline.
- =#+TITLE:= and the other =#+= lines are the file's details. Drawers between =:PROPERTIES:= and =:END:= are hidden.
* Try it yourself
1. Change =NEXT= to =DONE= in the gallery headline. Its badge turns green.
2. Change =- [ ] Large canvas= to =- [X] Large canvas=. The box is ticked and the line is struck through.
3. Add =:urgent:= at the end of a headline. A tag appears at the right of it.
4. Add the line =** TODO [#B] Varnish the frost painting :studio:= under This week. A new row appears with its badge, and it folds like the others.
#+BEGIN_NOTE
Next: /Forum post/ adds tags to BBCode; /Wiki article/ reads MediaWiki.
#+END_NOTE