Orgstar

Configuration

Every setting lives in a text file you can edit, and most of them also appear in the Settings window.

Where settings live

Orgstar keeps its settings in a configuration folder:

The environment variable ORGSTAR_CONFIG_DIR overrides both. If a file is missing from the configuration folder but exists in ~/Library/Application Support/Orgstar (where earlier versions kept it), Orgstar reads it from there, and reloads it when you edit it there.

The folder holds these files:

FileWhat it holdsWritten by Orgstar
config.tomlEvery setting of the Settings window, and the themeYes, when you change a setting
keymap.tomlYour key bindings, on top of the presetOnly by Import from Emacs
capture.tomlCapture templatesOnly by Import from Emacs
views.tomlSaved agenda viewsNo
default-theme.tomlThe default theme's colors, for referenceYes, at every launch

config.toml is the source of truth. The Settings window writes each change into it, keeping your comments and the order of lines, and edits you make to the file apply while Orgstar runs. If the file doesn't exist at launch, Orgstar creates it with every setting at its current value and a comment after each one.

When you add the folder to a dotfiles repository, keep default-theme.toml out of it or ignore its changes: Orgstar rewrites it whenever its contents differ from the built-in theme.

Opening config.toml

Saving the buffer applies the file, the same as saving it from another editor.

Problems in the files

If config.toml has a line Orgstar can't use, the problem shows in the message line under the editor, with a count when there are more. Each problem names the file and the key:

A file that isn't valid TOML is reported with its parse error, and none of it applies. keymap.toml, capture.toml and views.toml report their problems the same way when they are read.

The Settings window

Open it with Orgstar ▸ Settings (⌘,). It has five panes. Each control writes the config.toml key named in the tables below; the config.toml reference below gives the type and the Emacs variable.

General

ControlChoicesDefaultKey
config.toml: Edit in OrgstarOpens the file in the main window
config.toml: Open with Default AppOpens the file in the app macOS uses for .toml
config.toml: Show in FinderSelects the file in Finder
Emacs: Import from Emacs…Opens the import sheet; see Import from Emacs below
Save filesAutomatically, when typing stops; Only with File ▸ Save (⌘S)Automaticallysave
KeysEmacs; Mac; Doom (Vim keys)Emacskeymap
Show hidden files and foldersOn or offOnshow-hidden-files
Option as MetaLeft Option; Right Option; Both; NeitherLeft Optionoption-as-meta

Automatic saving writes a file one second after you stop typing. The keymap presets and keymap.toml are covered in Keys and commands.

Editing

ControlChoices or rangeDefaultKey
TagsAligned to end at column 77; One space after the titleAligned (-77)org-tags-column
M-RET adds the new heading after the subtreeOn or offOnorg-insert-heading-respect-content
M-RET splits the line at the caretOn or offOfforg-M-RET-may-split-line
Lists can use letters (a. b. c.)On or offOnorg-list-allow-alphabetical
M-q fills to column N40 to 20080fill-column
Long lines run off the edge instead of wrapping (org-startup-truncated)On or offOfforg-startup-truncated
Emacs hides emphasis markers (org-hide-emphasis-markers)On or offOnorg-hide-emphasis-markers
Emacs shows entities as characters (org-pretty-entities)On or offOnorg-pretty-entities
Default TODO keywordsText in #+TODO syntax, one sequence per lineSee beloworg-todo-keywords

The two "Emacs hides" and "Emacs shows" switches describe your Emacs, not Orgstar's display. Tag alignment, table alignment and M-q measure text the way your Emacs displays it, so a file edited in both keeps the same layout. Set them to match your Emacs configuration. They also control whether Orgstar hides markers and shows entities when markup is hidden.

The Tags picker offers two values. config.toml accepts any integer; with a value other than -77 or 0 the picker shows no selection.

The long-lines switch applies to files as they open; View ▸ Truncate or Wrap Long Lines switches the file in front.

Default TODO keywords apply to files without a #+TODO line. Orgstar reads them at launch, so a change takes effect after you quit and reopen Orgstar.

Appearance

ControlRangeDefaultKey
FontSystem monospaced, or any installed monospaced familySystem monospacedfont
Size8 to 36 pt13 ptfont-size
Line spacing0 to 16 pt2 ptline-spacing
Headings grow by N pt a level0 to 8 pt1 ptheading-size-step
Colors: Edit in config.tomlOpens config.toml
Colors: Show Default ThemeOpens default-theme.toml

See Themes and Fonts below.

Agenda

ControlRangeDefaultKey
Agenda shows N days1 to 36610org-agenda-span
Agenda starts N days before today0 to 14 days before3 daysorg-agenda-start-day
Include files in subfoldersOn or offOffagenda-include-subfolders
Notify before timed agenda entriesOn or offOnreminders
N minutes before0 to 12012appt-message-warning-time
Ask what to do with idle time while clocked inOn or offOfforg-clock-idle-time
After N minutes without keyboard or mouse input1 to 24015 when turned onorg-clock-idle-time
Remember N recently clocked entries1 to 355org-clock-history-length

An entry's APPT_WARNTIME property overrides the lead time. The agenda is covered in The agenda.

Turning on the idle question sets org-clock-idle-time to 15 minutes; turning it off sets it to 0. The minutes stepper is disabled while the question is off. Idle time and the clock history are covered in Dates and clocking.

Capture

ControlDefaultKey
⌃⌥Space opens Capture from any appOnglobal-capture-hotkey

The footer shows the path of capture.toml. Templates are covered in Capture.

Settings only in config.toml

These settings have no control in the Settings window. Some are in the View menu.

KeyAlso in
org-log-done
org-log-reschedule
org-log-redeadline
org-log-into-drawer
org-startup-indented
org-hide-leading-stars
org-startup-align-all-tables
org-startup-with-inline-images
org-cycle-hide-drawer-startup
org-cycle-hide-block-startup
org-use-speed-commands
spell-check
electric-pair-mode
display-line-numbers-typeView ▸ Show Line Numbers (⇧⌘L)
tab-barView ▸ Show Tab Bar
show-markupView ▸ Show Markup (⇧⌘M)
ignored-folders
[org-agenda-prefix-format]
theme-file

config.toml reference

Settings that mirror an Emacs variable sit at the top of the file under that variable's name. The agenda prefix formats are in [org-agenda-prefix-format], type and theme in [theme], and the settings Emacs has no variable for in [orgstar].

A key you remove from the file goes back to its default. A key that isn't in the table below is reported as unknown.

Top level

KeyTypeDefaultEffect
fill-columninteger80The column M-q fills to. Mirrors fill-column.
org-tags-columninteger-77Negative: tags end at that column. 0: one space between title and tags. Mirrors org-tags-column.
org-insert-heading-respect-contentbooleantrueM-RET adds the new heading after the current subtree. Mirrors org-insert-heading-respect-content.
org-M-RET-may-split-linebooleanfalseM-RET in the middle of a line splits it at the caret. Mirrors the default entry of org-M-RET-may-split-line.
org-list-allow-alphabeticalbooleantruea., b), A. are list bullets. Mirrors org-list-allow-alphabetical.
org-hide-emphasis-markersbooleantrueYour Emacs hides *bold* and =code= markers; Orgstar hides them when markup is hidden and measures text without them. Mirrors org-hide-emphasis-markers.
org-pretty-entitiesbooleantrueYour Emacs shows \alpha as α and lowers x_{1}; Orgstar does the same when markup is hidden. Mirrors org-pretty-entities.
org-todo-keywordsstringsee belowKeywords for files without #+TODO, in #+TODO syntax; separate sequences with \n. Letters in parentheses turn on fast selection. Read at launch. Mirrors org-todo-keywords.
org-log-donestring"nil"nil, time (a CLOSED timestamp) or note (CLOSED and a note). Mirrors org-log-done.
org-log-reschedulestring"nil"nil, time or note: log changing or removing a SCHEDULED date. Mirrors org-log-reschedule.
org-log-redeadlinestring"nil"nil, time or note: log changing or removing a DEADLINE. Mirrors org-log-redeadline.
org-log-into-drawerstring""The drawer state notes go in. "LOGBOOK" is Emacs's t; "" puts them under the heading. Mirrors org-log-into-drawer.
org-startup-indentedbooleantrueIndent bodies under their headings, as org-indent-mode. #+STARTUP: indent / noindent override it. Mirrors org-startup-indented.
org-hide-leading-starsbooleanfalseShow only a heading's last star, without indentation. #+STARTUP: hidestars / showstars override it. Mirrors org-hide-leading-stars.
org-startup-align-all-tablesbooleanfalseAlign every table when a file opens. #+STARTUP: align / noalign override it. Mirrors org-startup-align-all-tables.
org-startup-truncatedbooleanfalseLong lines run off the right edge instead of wrapping. Mirrors org-startup-truncated.
spell-checkbooleanfalseCheck spelling while typing, outside code, links, dates, tags and keywords.
electric-pair-modebooleantrueType brackets, <> and quotes in pairs. Mirrors electric-pair-mode.
org-startup-with-inline-imagesbooleanfalseShow image links as images when a file opens. #+STARTUP: inlineimages / noinlineimages override it. Mirrors org-startup-with-inline-images.
org-use-speed-commandsbooleanfalseSingle keys at the start of a heading line run commands (n, p, t, c, …). Mirrors org-use-speed-commands.
org-cycle-hide-drawer-startupbooleantrueFold drawers when a file opens. #+STARTUP: hidedrawers / nohidedrawers override it. Mirrors org-cycle-hide-drawer-startup.
org-cycle-hide-block-startupbooleanfalseFold blocks when a file opens. #+STARTUP: hideblocks / nohideblocks override it. Mirrors org-cycle-hide-block-startup.
display-line-numbers-typebooleantrueLine numbers in the editor's gutter. Orgstar numbers lines absolutely; there is no relative or visual mode.
org-agenda-spaninteger10Days the agenda shows. Mirrors org-agenda-span.
org-agenda-start-daystring"-3d"The agenda's first day relative to today, as "-3d" or "+0d". Only day offsets are accepted. Mirrors org-agenda-start-day.
appt-message-warning-timeinteger12Minutes of warning before timed entries. An entry's APPT_WARNTIME property overrides it. Mirrors appt-message-warning-time.
org-clock-idle-timeinteger0Minutes without keyboard or mouse input, with a clock running, before Orgstar asks what to do with the idle time. 0 never asks (Emacs's nil). Mac only. Mirrors org-clock-idle-time.
org-clock-history-lengthinteger5How many recently clocked entries Orgstar remembers. Mirrors org-clock-history-length.

The default org-todo-keywords is the first sequence of Doom Emacs's default:

org-todo-keywords = "TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k)"

The startup settings (org-startup-*, org-hide-leading-stars, org-cycle-hide-*-startup) apply when a file opens. Files already open keep their state until you open them again.

[org-agenda-prefix-format]

KeyTypeDefaultEffect
agendastring" %i %-12:c%?-12t% s"Prefix of lines in the day view
todostring" %i %-12:c"Prefix of lines in the TODO list
tagsstring" %i %-12:c"Prefix of tag and property matches

These mirror the entries of org-agenda-prefix-format. In the format, %c is the category, %t the time, %s the scheduled or deadline note, %e the effort, %l the level, %b the outline path, %T the item's last tag (inherited tags included), and a number such as %-12 pads. See The agenda.

[theme]

KeyTypeDefaultEffect
fontstring""A font family. "" uses the system's monospaced font.
font-sizeinteger13Points.
line-spacinginteger2Points between lines.
heading-size-stepinteger1Points a heading is larger than the level below. Level 4 and deeper are body size.
theme-filestring""A theme in its own file in the configuration folder, applied under the colors in config.toml.

Any other key in [theme] is a color; see Themes below.

[orgstar]

KeyTypeDefaultEffect
savestring"automatic"automatic (one second after typing stops) or explicit (only with ⌘S).
keymapstring"emacs"emacs, mac or doom. Your own bindings go in keymap.toml.
option-as-metastring"left"Which Option key is Meta: left, right, both or none.
tab-barbooleanfalseA tab for each open buffer above the editor.
show-markupbooleanfalseShow link brackets and emphasis markers.
show-hidden-filesbooleantrueList dotfiles and dot folders in your folders.
ignored-foldersstringsee belowFolder names never listed or searched, separated by spaces.
agenda-include-subfoldersbooleanfalseThe agenda reads org files in subfolders too.
remindersbooleantrueNotify before timed entries.
global-capture-hotkeybooleantrue⌃⌥Space opens Capture from any app.

The default ignored-folders is:

ignored-folders = ".Spotlight-V100 .Trash .build .bzr .cache .fseventsd .git .gradle .hg .jj .mypy_cache .next .pytest_cache .stfolder .stversions .svn .terraform .tox .venv node_modules"

An example

fill-column = 72
org-tags-column = 0
org-todo-keywords = "TODO(t) NEXT(n) WAIT(w@/!) | DONE(d!) CANCELED(c@)"
org-log-done = "time"
org-log-into-drawer = "LOGBOOK"
org-startup-truncated = true
org-agenda-span = 7
org-agenda-start-day = "+0d"

[theme]
font = "JetBrains Mono"
font-size = 14
link = "#0a7ea4"

[theme.todo]
WAIT = "#bf8700"

[orgstar]
keymap = "doom"
save = "explicit"

Names from earlier versions

Earlier versions used keys such as editor.fill-column and agenda.span. Orgstar still reads them. At launch, each such key in the file is renamed in place to its current name and moved to its current section; the rest of the file, and the comments on those lines, stay as they are. When a setting is in the file under both names, the current name wins and the old line is removed. A section the move leaves empty is removed. A file that lacks a whole section (such as [theme]) gets that section added at the end.

keymap.toml and capture.toml

keymap.toml holds [[bind]] tables with keys, command, and optionally mode and when. They layer over the preset chosen in Keys. Orgstar reloads the file when it changes. See Keys and commands.

[[bind]]
keys = "C-c a"
command = "app.agenda"

capture.toml holds [[template]] tables. Without the file, Orgstar uses two templates: t (Personal todo, under Inbox in todo.org) and n (Personal notes, under Inbox in notes.org). See Capture.

views.toml holds [[view]] tables for the agenda; see The agenda.

In-file settings

Keyword lines in a file set options for that file, as in Emacs. Orgstar reads them outside blocks; for #+STARTUP only keyword lines count, so a #+STARTUP line inside a paragraph or a block changes nothing: not folding, logging or inline images.

Keywords Orgstar reads

KeywordEffect
#+TODO, #+SEQ_TODOA TODO sequence: active keywords, a bar, then done keywords. Without the bar, the last word is the done state. NAME(k) gives a fast-selection key, NAME(k!/@) logging on entering and leaving. Any TODO line replaces the default keywords.
#+TYP_TODOA type sequence. As in Org, type sequences come first, then #+TODO, then #+SEQ_TODO.
#+PRIORITIESThree values: highest, lowest, default, as A C B or 1 5 3. The default is A C B.
#+STARTUPStartup options; see below.
#+TAGSTags for fast tag selection with C-c C-q, with keys as work(w), groups in { } and tag groups in [ ]. Without #+TAGS, C-c C-q offers the tags used in the file.
#+FILETAGSTags every heading in the file inherits, as :work:project:.
#+PROPERTYA file-wide property, as #+PROPERTY: header-args :results output. NAME+ appends to the value.
#+CATEGORYThe file's category in the agenda. Without it the category is the file name.
#+ARCHIVEWhere C-c C-x C-a archives to. The default is %s_archive::.
#+COLUMNSThe default column view format.
#+LINKA link abbreviation, as #+LINK: gh https://github.com/%s.
#+CONSTANTSConstants for table formulas, as #+CONSTANTS: c=299792458 pi=3.14.
#+SETUPFILEA file whose keyword lines count as this file's; see below.
#+TITLE, #+AUTHOR, #+DESCRIPTIONUsed by export, Quick Look and Spotlight.
#+OPTIONS, #+MACRO, #+INCLUDE, #+EXCLUDE_TAGS, #+SELECT_TAGSExport settings; see Export.
#+TODO: TODO(t) NEXT(n) WAIT(w@/!) | DONE(d!) CANCELED(c@)
#+PRIORITIES: A E C
#+STARTUP: content logdrawer
#+FILETAGS: :work:
#+CATEGORY: acme

After you change a keyword line, press C-c C-c on it to read the file's settings again, as org-mode-restart does in Emacs. Changes to #+TODO, #+SEQ_TODO, #+TYP_TODO and #+PRIORITIES apply as you type.

#+STARTUP options

OptionEffect
overview, foldOnly top-level headings show when the file opens.
contentAll headings show, no bodies.
showall, nofoldEverything shows.
show2levels … show5levels (any showNlevels)Headings down to level N show.
showeverythingEverything shows, including drawers and blocks; VISIBILITY properties are ignored.
hidedrawers, nohidedrawersFold or don't fold drawers at startup.
hideblocks, nohideblocksFold or don't fold blocks at startup.
indent, noindentVirtual indentation on or off.
hidestars, showstarsHide leading stars or show them.
align, noalignAlign every table when the file opens, or don't.
inlineimages, noinlineimagesShow image links as images, or don't.
shrinkShrink table columns that have a width cookie.
logdone, lognotedone, nologdoneRecord a time, a note, or nothing when an entry becomes done.
logrepeat, lognoterepeat, nologrepeatThe same, when a repeating entry is completed.
logreschedule, lognotereschedule, nologrescheduleThe same, when a scheduled date changes.
logredeadline, lognoteredeadline, nologredeadlineThe same, when a deadline changes.
logdrawer, nologdrawerNotes go in LOGBOOK, or under the heading.

After the startup visibility, Orgstar applies each heading's VISIBILITY property and folds subtrees tagged ARCHIVE, unless showeverything is set.

Completion offers every option of org-startup-options. Options not in the table above, such as odd, entitiespretty, latexpreview, constSI and the footnote options, are accepted and ignored.

Setup files

#+SETUPFILE: path reads the keyword lines of another file and treats them as if they were in this file, before its own lines. This follows org--collect-keywords-1 in Org:

Keywords from setup files count for TODO keywords, priorities, #+STARTUP, #+TAGS, #+FILETAGS, #+PROPERTY, #+CATEGORY, #+ARCHIVE, #+COLUMNS, #+LINK, #+CONSTANTS and export. Orgstar reads setup files when a file opens, when you press C-c C-c on a keyword line, and when the file changes on disk. If you edit only the setup file, press C-c C-c on a keyword line of each open file that uses it.

Import from Emacs

Import from Emacs reads your Emacs or Doom Emacs configuration and offers to carry its org settings, folders, capture templates and key bindings over. Nothing changes until you choose Import.

Running it

  1. Open Settings ▸ General and click Import from Emacs…, or run Import from Emacs… from the command palette (⇧⌘P).
  2. Orgstar looks for a configuration in these places, in order, and reads the first it finds: $DOOMDIR, ~/.config/doom, ~/.doom.d, ~/.config/emacs, ~/.emacs.d, ~/.emacs. A folder counts when it holds init.el, config.el or custom.el. Doom's own installation folder (one with lisp/doom.el) is skipped.
  3. To read another configuration, click Choose… and pick a file or a folder. For a folder, Orgstar reads init.el, config.el and custom.el in it.
  4. The sheet lists what it found under Settings, Folders, Capture templates and Key bindings, each with the line it came from (config.el:27, or Doom default). Everything is selected; clear what you don't want.
  5. Click Import. The sheet then summarizes what was imported and any problems.

What Import does with each kind of item:

The Not imported section lists what Orgstar read but can't use, with the reason: settings it has no equivalent for, values it can't work out without running Emacs, bindings to code rather than a command, and files it couldn't read. The footer counts variables that aren't about org, which are left alone.

A literate configuration (config.org) isn't read. Point Choose… at the config.el it tangles to.

Doom Emacs

A configuration counts as Doom when it contains (doom!, (map! = or =(after! =. Orgstar then also reads Doom's own org defaults, from the Doom installation in =$EMACSDIR, ~/.config/emacs or ~/.emacs.d: modules/lang/org/config.el and lisp/doom-emacs.el. Your configuration overrides them. Doom defaults Orgstar has no use for are counted in the footer rather than listed.

A Doom configuration, or any configuration that enables evil, adds keymap = "doom".

What it reads

Orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms:

FormWhat Orgstar takes
setq, setq-default, setq!, setopt, csetqEach variable and value
defvar, defcustomThe value, below every other assignment
custom-set-variablesEach quoted (variable value)
after!, with-eval-after-load, eval-after-loadThe forms inside, ranked above plain assignments
use-package, use-package!Forms in :config and :init, and pairs in :custom
progn, when, unless, if, let, let*, with-no-warningsThe forms inside. Conditions aren't evaluated, so every branch is read.
map! (Doom)Bindings, with :leader (SPC), :localleader (SPC m), :prefix, and state keywords such as :n, :i, :v, :nv
define-key, keymap-set, global-set-key, keymap-global-setBindings
evil-define-key, evil-define-key*Bindings in the normal, insert or visual state

When a variable is set more than once, the last assignment wins, with assignments inside after! and similar forms winning over plain ones, and those over Doom's defaults.

Orgstar works out a value when it is a literal, a quoted or backquoted form (with , and ,@), a variable set earlier in the configuration, or a call to list, concat, expand-file-name, file-name-concat or file-name-as-directory on such values. Anything else, such as a function call or a value computed from the environment, is listed under Not imported as worked out when Emacs runs.

Only variables whose names start with org-, appt-, display-line-numbers, fill-column, evil-, doom-font, doom-variable-pitch-font, doom-theme or calendar-week-start-day are considered.

How variables map

Emacs variableBecomes
fill-column, org-tags-column, appt-message-warning-timeThe same key, when the value is a number
org-insert-heading-respect-content, org-list-allow-alphabetical, org-hide-emphasis-markers, org-pretty-entities, org-cycle-hide-drawer-startup, org-cycle-hide-block-startup, org-use-speed-commands, org-startup-with-inline-images, org-startup-indented, org-hide-leading-stars, org-startup-align-all-tables, org-startup-truncatedThe same key: nil or an empty list is false, anything else true
org-hide-drawer-startup, org-hide-block-startuporg-cycle-hide-drawer-startup, org-cycle-hide-block-startup
org-M-RET-may-split-lineorg-M-RET-may-split-line, from the default entry of an alist; other per-context entries aren't supported
org-agenda-prefix-format[org-agenda-prefix-format]: a string sets all three views; an alist sets agenda, todo and tags
org-log-done, org-log-reschedule, org-log-redeadlineThe same key: nil, time (also t) or note
org-log-into-drawerA string as given; t becomes "LOGBOOK"; nil becomes ""
display-line-numbers-typetrue unless nil; relative and visual become absolute numbers
org-agenda-spanA number, or day (1), week (7), fortnight (14), month (30), year (365)
org-clock-idle-timeMinutes; nil becomes 0 (never)
org-clock-history-lengthThe same key, when the value is a positive number
org-agenda-start-dayA day offset such as "-3d"; nil becomes "+0d". Other forms aren't supported.
org-todo-keywordsorg-todo-keywords, one line per sequence. Keywords with spaces are left out; type sequences are read as sequences.
org-directoryA folder to add
org-agenda-filesA folder for each entry; for a .org file, its folder
org-capture-templatesTemplates for capture.toml; see below
doom-fontfont and font-size, from (font-spec :family … :size …) or "Family-14"
doom-variable-pitch-fontNot imported: Orgstar uses one font
doom-themeNot imported: set colors under [theme]
evil-mode in use, or Doomkeymap = "doom"

Any other org- or appt- variable is listed as having no equivalent.

Capture templates are imported when their type is entry, item, checkitem, plain or table-line, their template is a string, and their target is file, file+headline, file+olp, file+olp+datetree, file+datetree, file+weektree, id or clock. The properties :prepend, :immediate-finish, :jump-to-captured, :clock-in, :clock-keep, :clock-resume, :empty-lines, :empty-lines-before, :empty-lines-after, :tree-type (day, week, month) and :table-line-pos carry over; others are listed as left out. Template groups (a key and a name only) are skipped.

Key bindings are imported when the command is one Orgstar has a counterpart for, such as org-todo, org-schedule, org-refile, org-capture or save-buffer. The clock commands org-clock-in, org-clock-out, org-clock-cancel, org-clock-goto, org-clock-in-last, org-resolve-clocks and org-clock-mark-default-task map to Clock In, Clock Out, Cancel Clock, Go to Clocked Entry, Clock In to Last Entry, Resolve Open Clocks… and Mark as Default Clock Task. Keys must be a string or (kbd "…"); bindings with key vectors such as [f5] are skipped. In a Doom configuration, bindings without a state go to the normal state.

Limits of the Lisp reader

Themes

Orgstar has one built-in theme, the default theme, with light and dark colors after GitHub's light and dark themes. You change it by setting colors in config.toml, or by keeping a theme in its own file.

Colors are strings in the form "#rrggbb" or "#rrggbbaa". They go in these tables:

TableEffect
[theme]Sets a color for both light and dark appearance
[theme.light]Sets a color for light appearance only
[theme.dark]Sets a color for dark appearance only
[theme.todo]Colors TODO keywords by name, in both appearances, as org-todo-keyword-faces
[theme]
heading-1 = "#005cc5"

[theme.dark]
background = "#1e1e1e"
foreground = "#d4d4d4"

[theme.todo]
WAIT = "#bf8700"
PROJ = "#8250df"

A keyword without its own color uses todo or done.

default-theme.toml in the configuration folder lists every color key with the default theme's values, light and dark. Settings ▸ Appearance ▸ Show Default Theme opens it. Copy lines from it into config.toml; edits to default-theme.toml itself are overwritten at the next launch.

Theme files

To keep a theme in its own file, put it in the configuration folder with the same tables ([theme], [theme.light], [theme.dark], [theme.todo]) and name it in config.toml:

[theme]
theme-file = "solarized.toml"

The colors stack in this order, each over the one before: the default theme, the theme file, then the colors in config.toml. The path is relative to the configuration folder and may name a subfolder, as themes/solarized.toml. Orgstar reloads the theme file when it changes. Only colors are read from a theme file; font and the other type keys in its [theme] table are ignored.

Color keys

KeyColors
backgroundthe editor's background
foregroundbody text
cursorthe caret
selectionselected text's background
heading-1 … heading-7headings of that level
heading-8level 8 and deeper headings
todoTODO keywords not yet done
doneDONE keywords
priority[#A] cookies
tags:tags:
linklinks
timestamptimestamps
code~code~ and inline source
verbatim=verbatim=
inline-backgroundbehind ~code~ and =verbatim=
markuplink brackets and emphasis markers
commentcomments
keyword#+KEYWORD lines
metadataplanning lines, drawers, properties and clocks
specialfootnotes, statistics cookies, targets, macros and LaTeX
block-backgroundthe band behind blocks
block-delimiter#+begin_ and #+end_ lines
tabletables
line-numberline numbers
line-number-currentthe caret's line number
syntax-keywordcode: keywords
syntax-stringcode: strings
syntax-commentcode: comments
syntax-functioncode: functions
syntax-typecode: types and modules
syntax-numbercode: numbers, constants and escapes
syntax-propertycode: properties, attributes and tags
syntax-labelcode: labels
sidebar-backgroundthe folder sidebar and the outline
sidebar-foregroundfile and heading names there
sidebar-headerfolder names there
modeline-backgroundthe modeline and message line
modeline-foregroundmodeline text
modeline-highlightthe outline path and the clock in the modeline
state-normalthe NORMAL tag (Doom keys)
state-insertthe INSERT tag
state-visualthe VISUAL and V-LINE tags
agenda-backgroundthe agenda and board
agenda-dateagenda day headers
agenda-todaytoday's header and the current time
agenda-timetimes and the time grid
agenda-categorycategories
agenda-deadlinedeadlines due
agenda-upcomingdeadlines coming up
agenda-scheduledscheduled items
agenda-scheduled-pastitems scheduled on an earlier day
habit-clearhabit graph: not due yet
habit-readyhabit graph: due
habit-alerthabit graph: due today, last chance
habit-overduehabit graph: overdue

The default theme leaves sidebar-background, sidebar-foreground, sidebar-header, modeline-background, modeline-foreground and agenda-background unset, so those parts keep the standard macOS look. Set them to color those parts too. In the views around the editor (sidebar, modeline, agenda), a color you set for one appearance only leaves the other appearance to the system. In the editor, a color set for one appearance only takes the default theme's color in the other.

An unknown color key, a value that isn't a color, or an unknown table such as [theme.solarized] is reported as a problem and skipped.

Appearance

Orgstar follows the system's light or dark appearance (System Settings ▸ Appearance). There is no setting to fix one appearance; to use the same colors in both, set them under [theme] rather than [theme.light] or [theme.dark].

Fonts

The editor uses one font for everything: body text, headings, code and tables. Choose it in Settings ▸ Appearance or with font under [theme].

On iPhone and iPad, the editor and reader use the same theme, read from the synced configuration folder. font applies when the family is installed on the device, otherwise the system's monospaced font is used, and font-size is the size at the default Dynamic Type setting, scaled with the size chosen on the device. The selection color and the syntax-* colors aren't used there. See iPhone and iPad.