docs/manual/guide/13-configuration.org

b3620724ba167f6d64229f61c4cb5b7612687077
orgstar/docs/manual/guide/13-configuration.org

1016 lines · 108693 bytes

   1#+TITLE: Configuration
   2#+DESCRIPTION: The Settings window, the files in ~/.config/orgstar, in-file settings, importing from Emacs, themes and fonts.
   3#+LEDE: Every setting lives in a text file you can edit, and most of them also appear in the Settings window.
   4
   5* Where settings live
   6
   7orgstar keeps its settings in a configuration folder:
   8
   9- =$XDG_CONFIG_HOME/orgstar= when =XDG_CONFIG_HOME= is set and not empty,
  10- otherwise =~/.config/orgstar=.
  11
  12The 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.
  13
  14The [[file:../install.org][Mac App Store version]] keeps the configuration folder in its container, =~/Library/Containers/sh.krz.orgstar/Data/.config/orgstar=. Settings ▸ General ▸ Choose Configuration Folder… makes it use another folder, such as =~/.config/orgstar= shared with the download version or kept with your dotfiles; Use Default Folder goes back to the container.
  15
  16The folder holds these files:
  17
  18| File                 | What it holds                                                    | Written by orgstar                    |
  19|----------------------+------------------------------------------------------------------+---------------------------------------|
  20| =config.toml=        | Every setting of the Settings window, the theme, and publishing projects | Yes, when you change a setting |
  21| =keymap.toml=        | Your key bindings, on top of the preset                          | Only by Import from Emacs             |
  22| =capture.toml=       | Capture templates                                                | Only by Import from Emacs             |
  23| =views.toml=         | Saved agenda views                                               | No                                    |
  24| =macros.toml=        | Named keyboard macros                                            | Yes, when you name a macro            |
  25| =snippets.toml=      | Snippets and templates for new files                             | Only by Import from Emacs             |
  26| =default-theme.toml= | The default theme's colors, for reference                        | Yes, at every launch                  |
  27
  28=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. A file that is there but can't be read, such as one that isn't UTF-8, is left as it is: the change isn't written and a message says why, as it does when a write fails. Import from Emacs and saving an agenda view treat =capture.toml=, =views.toml= and =keymap.toml= the same way.
  29
  30When 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.
  31
  32** Opening config.toml
  33
  34- orgstar ▸ Edit Config File (=⌥⌘,=) opens =config.toml= as a buffer in the main window. The command palette has the same command as Edit Config File.
  35- Settings ▸ General has three buttons for the file: Edit in orgstar, Open with Default App, and Show in Finder.
  36
  37Saving the buffer applies the file, the same as saving it from another editor.
  38
  39** Problems in the files
  40
  41If =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:
  42
  43- =config.toml: unknown setting editor.foo=
  44- =config.toml: org-log-done must be one of nil, time, note=
  45- =config.toml: org-agenda-start-day must look like "-3d" or "+0d"=
  46- =config.toml: theme.light.background must be a color such as "#1f2328"=
  47
  48A file that isn't valid TOML is reported with its parse error, and none of it applies. =keymap.toml=, =capture.toml=, =views.toml=, =macros.toml= and =snippets.toml= report their problems the same way when they are read.
  49
  50* The Settings window
  51
  52Open it with orgstar ▸ Settings (=⌘,=). It has seven panes, and an eighth, Git, in the download version. The last, orgstar+, has the plans and Restore Purchases in the Mac App Store version and the license key in the download version. Each control in the others, except Encryption and Git, writes the =config.toml= key named in the tables below; the config.toml reference below gives the type and the Emacs variable.
  53
  54** General
  55
  56| Control                                    | Choices                                                                      | Default                         | Key              |
  57|--------------------------------------------+------------------------------------------------------------------------------+---------------------------------+------------------|
  58| config.toml: Edit in orgstar               | Opens the file in the main window                                            |                                 |                  |
  59| config.toml: Open with Default App         | Opens the file in the app macOS uses for =.toml=                             |                                 |                  |
  60| config.toml: Show in Finder                | Selects the file in Finder                                                   |                                 |                  |
  61| Folder: Choose Configuration Folder…       | Mac App Store version: reads and writes the configuration in a folder you choose |                         |                  |
  62| Folder: Use Default Folder                 | Mac App Store version: goes back to the folder in the app's container       |                                 |                  |
  63| Emacs: Import from Emacs…                  | Opens the import sheet; see Import from Emacs below|                                 |                  |
  64| Check for updates automatically            | Download version: once a day; orgstar ▸ Check for Updates… checks now        | Asked on the second launch      |                  |
  65| Save files                                 | Automatically, when typing stops; Only with File ▸ Save (=⌘S=)             | Automatically                   | =save=           |
  66| Keys                                       | Emacs; Mac; Doom (Vim keys)                                                  | Emacs                           | =keymap=         |
  67| Show hidden files and folders              | On or off                                                                    | On                              | =show-hidden-files= |
  68| Keep orgstar in the menu bar               | On or off                                                                    | Off                             | =menu-bar-item=     |
  69| Option as Meta                             | Left Option; Right Option; Both; Neither                                     | Left Option                     | =option-as-meta= |
  70
  71Automatic saving writes a file one second after you stop typing. The keymap presets and =keymap.toml= are covered in [[file:03-keys.org][Keys and commands]].
  72
  73** Editing
  74
  75| Control                                                    | Choices or range                                       | Default             | Key                                  |
  76|------------------------------------------------------------+--------------------------------------------------------+---------------------+--------------------------------------|
  77| Tags                                                       | Aligned to end at column 77; One space after the title | Aligned (=-77=)     | =org-tags-column=                    |
  78| New headings go after the subtree                          | On or off                                              | Off                 | =org-insert-heading-respect-content= |
  79| New headings and items split the line at the caret        | On or off                                              | Off                 | =org-M-RET-may-split-line=           |
  80| Lists can use letters (a. b. c.)                           | On or off                                              | On                  | =org-list-allow-alphabetical=        |
  81| Fill Paragraph wraps lines at column N                     | 40 to 200                                              | 80                  | =fill-column=                        |
  82| Long lines run off the edge instead of wrapping            | On or off                                              | Off                 | =org-startup-truncated=              |
  83| Emacs hides emphasis markers                               | On or off                                              | On                  | =org-hide-emphasis-markers=          |
  84| Emacs shows entities as characters                         | On or off                                              | On                  | =org-pretty-entities=                |
  85| Default TODO keywords                                      | Text in =#+TODO= syntax, one sequence per line         | See below           | =org-todo-keywords=                  |
  86| Entries can't be done before their TODO children           | On or off                                              | Off                 | =org-enforce-todo-dependencies=      |
  87| Entries can't be done with unchecked boxes                 | On or off                                              | Off                 | =org-enforce-todo-checkbox-dependencies= |
  88| When an entry is done                                      | Record nothing; Record the time, as CLOSED; Record the time and ask for a note | Record nothing | =org-log-done= |
  89| State notes go in a LOGBOOK drawer                         | On or off                                              | Off                 | =org-log-into-drawer=                |
  90| Speed keys                                                 | On or off                                              | Off                 | =org-use-speed-commands=             |
  91| Check spelling while typing                                | On or off                                              | Off                 | =spell-check=                        |
  92| Completion list opens                                      | As the keys do; By itself as you type; Only with a key | As the keys do      | =completion-auto=                    |
  93| After a pause of N ms                                      | 0 to 2000, in steps of 50                              | 400                 | =completion-auto-delay=              |
  94| Once N characters are typed                                | 1 to 10                                                | 2                   | =completion-auto-prefix=             |
  95| Candidates                                                 | As the keys do; Start with what's typed; Have its letters in order, best first | As the keys do | =completion-style= |
  96| The list offers words from open files and folders          | On or off                                              | Off                 | =completion-words=                   |
  97
  98The two New headings switches and the fill column show the keys of Insert Heading and Fill Paragraph in the preset you use, and each control's help tag names its =config.toml= key. The two "Emacs hides" and "Emacs shows" switches describe your Emacs, not orgstar's display. Tag alignment, table alignment and Fill Paragraph 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.
  99
 100The Tags picker offers two values. =config.toml= accepts any integer; with a value other than =-77= or =0= the picker shows no selection.
 101
 102The long-lines switch applies to files as they open; View ▸ Truncate Long Lines switches the file in front.
 103
 104Default 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.
 105
 106The two dependency switches are described under Dependencies in [[file:05-todos-and-tags.org][TODOs and tags]].
 107
 108The completion controls are described under Completion in [[file:02-the-editor.org][The editor]]. "As the keys do" follows the Keys preset: the list opens by itself and matches letters in order with Doom, as Doom's corfu does with orderless, and does neither with Emacs or Mac keys. The iOS app has the same controls in Settings ▸ Completion.
 109
 110The LOGBOOK switch writes =org-log-into-drawer= as ="LOGBOOK"= or =""=. A drawer name of your own in =config.toml= shows the switch on; turning it off and on again replaces the name with =LOGBOOK=. Logging is described under Logging in [[file:05-todos-and-tags.org][TODOs and tags]], speed keys in [[file:03-keys.org][Keys and commands]] and spell checking in [[file:02-the-editor.org][The editor]].
 111
 112** Language
 113
 114orgstar's menus, settings and agenda are in English, German, French, Japanese, Spanish and Brazilian Portuguese, and follow the language chosen in System Settings ▸ General ▸ Language & Region on the Mac and Settings ▸ General ▸ Language & Region on iOS (or the app's own language there). What orgstar writes into your files, such as clock tables, is in the language Org would use: a clock table's =:lang=, else =org-export-default-language=. Exports use the file's =#+LANGUAGE:=; see [[file:12-export.org][Export]].
 115
 116* Appearance
 117
 118| Control                         | Range                                         | Default            | Key                 |
 119|---------------------------------+-----------------------------------------------+--------------------+---------------------|
 120| Theme: Light                    | A built-in light theme                        | Default            | =light-theme=       |
 121| Theme: Dark                     | A built-in dark theme                         | Default            | =dark-theme=        |
 122| Theme: Copy to Config Folder    | Writes =my-theme.toml= and makes it =theme-file= |                 |                     |
 123| App Icon                        | One of 13 icons, shown in the Dock while orgstar runs | Default    | (this Mac only)     |
 124| Font                            | System monospaced, or any installed monospaced family | System monospaced | =font=        |
 125| Body font                       | Same as Font, System, or any installed proportional family | Same as Font | =body-font=   |
 126| Size                            | 8 to 36 pt                                    | 13 pt              | =font-size=         |
 127| Line spacing                    | 0 to 16 pt                                    | 2 pt               | =line-spacing=      |
 128| Text width                      | Whole editor, or 60 to 120 columns            | Whole editor       | =text-width=        |
 129| Headings grow by N pt a level   | 0 to 8 pt                                     | 1 pt               | =heading-size-step= |
 130| Colors: Edit in config.toml     | Opens =config.toml=                           |                    |                     |
 131| Colors: Show Default Theme      | Opens =default-theme.toml=                    |                    |                     |
 132
 133See Themes and Fonts below.
 134
 135** Agenda
 136
 137| Control                             | Range                  | Default      | Key                         |
 138|-------------------------------------+------------------------+--------------+-----------------------------|
 139| Agenda shows N days                 | 1 to 366               | 10           | =org-agenda-span=           |
 140| Agenda starts N days before today   | 0 to 14 days before    | Today        | =org-agenda-start-day=      |
 141| Include files in subfolders         | On or off              | Off          | =agenda-include-subfolders= |
 142| Show days without entries           | On or off              | Off          | =org-agenda-show-all-dates= |
 143| Habits only today                   | On or off              | On           | =org-habit-show-habits-only-for-today= |
 144| Blocked entries                     | Dimmed; Hidden; Shown as usual | Dimmed | =org-agenda-dim-blocked-tasks= |
 145| Show events from Calendar           | On or off              | Off          | =calendar-events=           |
 146| A checkbox for each calendar        | On or off              | All on       | =calendar-event-calendars=  |
 147| Show reminders from Reminders       | On or off              | Off          | =agenda-reminders=          |
 148| A checkbox for each list            | On or off              | All on       | =agenda-reminder-lists=     |
 149| Notify before timed agenda entries  | On or off              | On           | =reminders=                 |
 150| N minutes before                    | 0 to 120               | 12           | =appt-message-warning-time= |
 151| Ask what to do with idle time while clocked in | On or off   | Off          | =org-clock-idle-time=       |
 152| After N minutes without keyboard or mouse input | 1 to 240   | 15 when turned on | =org-clock-idle-time=  |
 153| Remember N recently clocked entries | 1 to 35                | 5            | =org-clock-history-length=  |
 154
 155An entry's =APPT_WARNTIME= property overrides the lead time. The agenda is covered in [[file:07-agenda.org][The agenda]].
 156
 157The calendar checkboxes appear once Show events from Calendar is on and orgstar may read your calendars; turning the switch on asks for that access. While every calendar is checked, =calendar-event-calendars= is empty, so calendars you add later show too. The last checked calendar can't be unchecked; turn off Show events from Calendar instead. The Reminders list checkboxes work the same way. See [[file:07-agenda.org][The agenda]].
 158
 159Turning 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 [[file:06-dates-and-clocking.org][Dates and clocking]].
 160
 161** Capture
 162
 163| Control                                | Default | Key                     |
 164|----------------------------------------+---------+-------------------------|
 165| ⌃⌥Space opens Capture from any app     | On      | =global-capture-hotkey= |
 166
 167The footer shows the path of =capture.toml=. Templates are covered in [[file:08-capture.org][Capture]].
 168
 169** Encryption
 170
 171| Control                 | Choices               | Default                                      |
 172|-------------------------+-----------------------+----------------------------------------------|
 173| Use Touch ID to Decrypt | On or off             | Off, asked the first time a passphrase works |
 174| Saved Passphrases       | Forget, for each file |                                              |
 175
 176With it on, a passphrase typed for an encrypted entry or file is saved in the Keychain, and Touch ID or your password unlocks it from then on. With it off, nothing is saved in the Keychain or read from it. Turning it off asks first, saying how many saved passphrases it removes. Saved Passphrases lists the files with a saved passphrase.
 177
 178The choice is kept on this Mac, not in =config.toml=, so it isn't synced and can't be changed by editing a file. On iPhone and iPad the same switch, Use Face ID to Decrypt, is in the Settings tab. See [[file:04-outlines.org::*Face ID and Touch ID][Face ID and Touch ID]].
 179
 180** Git
 181
 182Download version only. One row for each folder in the sidebar; a folder that isn't in a git repository says so.
 183
 184| Control     | Choices                              | Default |
 185|-------------+--------------------------------------+---------|
 186| Each folder | Off; Commit; Commit, Pull and Push   | Off     |
 187
 188The choice is kept on this Mac for the folder's path, not in =config.toml=, since another Mac has other folders. Removing a folder from the sidebar and adding it again keeps it. See [[file:01-files-and-folders.org::*Committing to git][Committing to git]].
 189
 190On iPhone and iPad, Settings ▸ Working Copy syncs folders through the Working Copy app instead:
 191
 192| Control                  | Choices               | Default            |
 193|--------------------------+-----------------------+--------------------|
 194| URL key                  | Working Copy's key    | None               |
 195| Sync with Working Copy   | On or off, per folder | Off                |
 196| Repository               | A name, per folder    | The folder's name  |
 197| Sync when orgstar opens  | On or off, per folder | Off                |
 198
 199These are kept on the device, not in =config.toml=: the folders are at other paths on each device, and the key is kept in the Keychain. See [[file:14-ios.org::*Git folders through Working Copy][Git folders through Working Copy]].
 200
 201** Settings only in config.toml
 202
 203These settings have no control in the Settings window. Some are in the View menu.
 204
 205| Key                              | Also in                    |
 206|----------------------------------+----------------------------|
 207| =org-log-reschedule=             |                            |
 208| =org-log-redeadline=             |                            |
 209| =org-startup-indented=           |                            |
 210| =org-hide-leading-stars=         |                            |
 211| =org-startup-align-all-tables=   |                            |
 212| =org-startup-with-inline-images= |                            |
 213| =org-startup-with-latex-preview= |                            |
 214| =org-display-remote-inline-images= |                          |
 215| =org-cycle-hide-drawer-startup=  |                            |
 216| =org-cycle-hide-block-startup=   |                            |
 217| =electric-pair-mode=             |                            |
 218| =display-line-numbers-type=      | View ▸ Show Line Numbers (=⇧⌘L=), View ▸ Line Numbers |
 219| =pdf-margin=, =pdf-font=, =pdf-page-numbers= | File ▸ Export ▸ Export… (the dialog's PDF settings) |
 220| =tab-bar=                        | View ▸ Show Tab Bar        |
 221| =show-markup=                    | View ▸ Show Markup (=⇧⌘M=) |
 222| =ignored-folders=                |                            |
 223| =org-archive-location=          |                            |
 224| =org-export-default-language=   |                            |
 225| =org-use-tag-inheritance=, =org-tags-exclude-from-inheritance=, =org-tag-alist= | |
 226| =org-track-ordered-property-with-tag= |                       |
 227| =org-timer-format=, =org-timer-default-timer= |                  |
 228| =org-roam-directory=, =org-roam-dailies-directory=, =org-roam-dailies-file=, =org-roam-dailies-head=, =org-roam-dailies-entry= | |
 229| =notes-package=, =denote-directory=, =denote-prompts=, =denote-silo-directories=, =denote-sequence-scheme=, =denote-journal-directory=, =denote-journal-keyword=, =denote-journal-interval=, =denote-journal-title-format= | |
 230| =org-attach-id-dir=, =org-attach-use-inheritance= |              |
 231| =org-yank-image-save-method=, =org-yank-dnd-method= |            |
 232| =org-crypt-tag-matcher=, =org-crypt-use-before-save-magic= | |
 233| =org-agenda-start-on-weekday=    |                            |
 234| =org-deadline-warning-days=      |                            |
 235| =org-agenda-skip-scheduled-if-done= |                         |
 236| =org-agenda-skip-deadline-if-done=  |                         |
 237| =org-habit-show-habits-only-for-today= |                      |
 238| =org-agenda-log-mode-items=      |                            |
 239| =org-clock-into-drawer=          |                            |
 240| =org-clock-rounding-minutes=, =org-clock-out-remove-zero-time-clocks=, =org-clock-in-switch-to-state=, =org-clock-out-when-done= | |
 241| =org-agenda-todo-ignore-with-date=, =org-agenda-todo-ignore-scheduled=, =org-agenda-todo-ignore-deadlines=, =org-agenda-todo-ignore-timestamp=, =org-agenda-tags-todo-honor-ignore-options= | |
 242| =org-agenda-search-view-always-boolean= |                     |
 243| =org-agenda-search-view-force-full-words= |                   |
 244| =[org-agenda-prefix-format]=     |                            |
 245| =[org-agenda-sorting-strategy]=, =org-agenda-sort-notime-is-late=, =org-agenda-sort-noeffort-is-high= | |
 246| =[org-agenda-time-grid]=, =org-agenda-use-time-grid=, =org-agenda-show-current-time-in-grid= | |
 247| =[org-stuck-projects]=           |                            |
 248| =org-agenda-files=               |                            |
 249| =org-icalendar-use-deadline=, =org-icalendar-use-scheduled=, =org-icalendar-include-todo=, =org-icalendar-combined-agenda-file= | |
 250| =org-refile-targets=, =org-refile-use-outline-path=, =org-refile-allow-creating-parent-nodes= | |
 251| =theme-file=                     |                            |
 252
 253* config.toml reference
 254
 255Settings 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]=, the sorting strategies in =[org-agenda-sorting-strategy]=, the time grid in =[org-agenda-time-grid]=, stuck projects in =[org-stuck-projects]=, type and theme in =[theme]=, and the settings Emacs has no variable for in =[orgstar]=.
 256
 257A key you remove from the file goes back to its default. A key that isn't in the table below is reported as unknown.
 258
 259** Top level
 260
 261| Key                                  | Type    | Default | Effect                                                                                                         |
 262|--------------------------------------+---------+---------+----------------------------------------------------------------------------------------------------------------|
 263| =fill-column=                        | integer | =80=    | The column =M-q= fills to. Mirrors =fill-column=.                                                              |
 264| =org-tags-column=                    | integer | =-77=   | Negative: tags end at that column. =0=: one space between title and tags. Mirrors =org-tags-column=.          |
 265| =org-insert-heading-respect-content= | boolean | =false= | =M-RET= adds the new heading after the current subtree. Mirrors =org-insert-heading-respect-content=.        |
 266| =org-M-RET-may-split-line=           | boolean | =false= | =M-RET= in the middle of a line splits it at the caret. Mirrors the =default= entry of =org-M-RET-may-split-line=. |
 267| =org-list-allow-alphabetical=        | boolean | =true=  | =a.=, =b)=, =A.= are list bullets. Mirrors =org-list-allow-alphabetical=.                                     |
 268| =org-hide-emphasis-markers=          | boolean | =true=  | Your Emacs hides =*bold*= and ~=code=~ markers; orgstar hides them when markup is hidden and measures text without them. Mirrors =org-hide-emphasis-markers=. |
 269| =org-pretty-entities=                | boolean | =true=  | Your Emacs shows =\alpha= as α and lowers =x_{1}=; orgstar does the same when markup is hidden. Mirrors =org-pretty-entities=. |
 270| =org-todo-keywords=                  | string  | see below | Keywords 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=. |
 271| =org-log-done=                       | string  | ="nil"= | =nil=, =time= (a =CLOSED= timestamp) or =note= (=CLOSED= and a note). Mirrors =org-log-done=.                |
 272| =org-log-reschedule=                 | string  | ="nil"= | =nil=, =time= or =note=: log changing or removing a =SCHEDULED= date. Mirrors =org-log-reschedule=.          |
 273| =org-log-redeadline=                 | string  | ="nil"= | =nil=, =time= or =note=: log changing or removing a =DEADLINE=. Mirrors =org-log-redeadline=.                 |
 274| =org-log-into-drawer=                | string  | =""=    | The drawer state notes go in. ="LOGBOOK"= is Emacs's =t=; =""= puts them under the heading. Mirrors =org-log-into-drawer=. |
 275| =org-enforce-todo-dependencies=      | boolean | =false= | An entry can't become done while a descendant has an active TODO keyword, or under an =ORDERED= parent while an earlier sibling has one. Mirrors =org-enforce-todo-dependencies=. |
 276| =org-enforce-todo-checkbox-dependencies= | boolean | =false= | An entry can't become done while its text has an unchecked checkbox. Mirrors =org-enforce-todo-checkbox-dependencies=. |
 277| =org-archive-location=               | string  | ="%s_archive::"= | Where Archive Subtree moves an entry that has no =ARCHIVE= property and whose file has no =#+ARCHIVE:=, as =file::heading=; =%s= is the file's name. Mirrors =org-archive-location=. |
 278| =org-export-default-language=        | string  | ="en"=          | The language of exports without =#+LANGUAGE:= and of clock tables without =:lang=, such as ="de"=. Mirrors =org-export-default-language=. |
 279| =org-use-tag-inheritance=            | string  | ="t"=   | Which tags inherit: ="t"= all, ="nil"= none, tag names separated by spaces, or a regular expression in braces such as ="{^@}"=. Read at launch. Mirrors =org-use-tag-inheritance=. |
 280| =org-tags-exclude-from-inheritance=  | string  | =""=    | Tags that never inherit, separated by spaces. Read at launch. Mirrors =org-tags-exclude-from-inheritance=. |
 281| =org-tag-alist=                      | string  | =""=    | The tags Set Tags offers in files without =#+TAGS=, in =#+TAGS= syntax with keys and groups, rows separated by =\n=. Mirrors =org-tag-alist=. |
 282| =org-track-ordered-property-with-tag= | string | ="nil"= | A tag that Toggle ORDERED Property adds and removes with the property: ="t"= for the tag =ORDERED=, or a tag name. Mirrors =org-track-ordered-property-with-tag=. |
 283| =auto-fill-mode= | boolean | =false= | Typing a space past =fill-column= breaks the line. View ▸ Auto Fill changes it for one buffer. Mirrors =auto-fill-mode= in =org-mode-hook=. |
 284| =org-roam-directory= | string | =""= | The folder org-roam notes are in; empty for the first sidebar folder. Mirrors =org-roam-directory=. |
 285| =org-roam-dailies-directory= | string | ="daily/"= | The folder daily notes are in, relative to =org-roam-directory=. Mirrors =org-roam-dailies-directory=. |
 286| =org-roam-dailies-file= | string | ="%<%Y-%m-%d>.org"= | A daily note's file name; =%<…>= formats its date. |
 287| =org-roam-dailies-head= | string | ="#+title: %<%Y-%m-%d>\n"= | What a new daily note starts with, under its =ID=. |
 288| =org-roam-dailies-entry= | string | ="* %?"= | The capture template Capture to Daily Note files. See [[file:09-links.org][Links]]. |
 289| =notes-package= | string | ="org-roam"= | Whose conventions Find Node…, Insert Node Link… and the daily-note commands follow: ="org-roam"= or ="denote"=. |
 290| =denote-directory= | string | =""= | The folders of Denote notes, separated by =:=, new notes going in the first; empty for the first sidebar folder. Mirrors =denote-directory=. |
 291| =denote-silo-directories= | string | =""= | The folders New Note in Silo… and Find Note in Silo… choose from, separated by =:=; empty for =denote-directory='s. Mirrors =denote-silo-directories=. |
 292| =denote-sequence-scheme= | string | ="numeric"= | How denote-sequence numbers notes: ="numeric"=, ="alphanumeric"= or ="alphanumeric-delimited"=. Mirrors =denote-sequence-scheme=. |
 293| =denote-prompts= | string | ="title keywords"= | What a new Denote note asks, in order, separated by spaces: =title=, =keywords=, =subdirectory=, =date=, =template=, =signature=. Mirrors =denote-prompts=. |
 294| =denote-journal-directory= | string | ="journal"= | The folder journal entries are in, relative to =denote-directory=. Mirrors =denote-journal-directory=. |
 295| =denote-journal-keyword= | string | ="journal"= | The keyword journal entries have. Mirrors =denote-journal-keyword=. |
 296| =denote-journal-interval= | string | ="daily"= | How long one journal entry lasts: ="daily"=, ="weekly"=, ="monthly"= or ="yearly"=. Mirrors =denote-journal-interval=. |
 297| =denote-journal-title-format= | string | ="%A %-e %B %Y %H:%M"= | A new journal entry's title, a =format-time-string= format. |
 298| =org-timer-format= | string | ="%s "= | What Insert Timer Value writes, with =%s= for the =h:mm:ss= value. Mirrors =org-timer-format=. |
 299| =org-timer-default-timer= | string | ="0"= | The countdown Set Countdown Timer… offers, in minutes or =h:mm:ss=; ="0"= offers none. Mirrors =org-timer-default-timer=. |
 300| =org-attach-id-dir= | string | ="data/"= | The folder ID-based attachment folders go in, relative to the org file's folder unless absolute. See [[file:04-outlines.org][Outlines]]. Mirrors =org-attach-id-dir=. |
 301| =org-attach-use-inheritance= | string | ="selective"= | Whether attachment folders come from an ancestor's =DIR= or =ID=: =selective=, ="t"= or ="nil"=. Mirrors =org-attach-use-inheritance=. |
 302| =org-yank-image-save-method= | string | ="attach"= | Where a pasted image goes: =attach= for the entry's attachment folder, or a folder, relative to the org file's folder unless absolute. See [[file:09-links.org][Links]]. Mirrors =org-yank-image-save-method=. |
 303| =org-yank-dnd-method= | string | ="ask"= | What dropping files on the editor does: =ask=, =attach=, =open= or =file-link=. See [[file:09-links.org][Links]]. Mirrors =org-yank-dnd-method=. |
 304| =org-crypt-tag-matcher= | string | ="crypt"= | The tag Encrypt Tagged Entries… encrypts. A single tag. See [[file:04-outlines.org][Outlines]]. Mirrors =org-crypt-tag-matcher=. |
 305| =org-crypt-use-before-save-magic= | boolean | =false= | Encrypt the entries with =org-crypt-tag-matcher='s tag on every save. Without their passphrase the file isn't saved until it's given. See [[file:04-outlines.org][Outlines]]. Mirrors =org-crypt-use-before-save-magic=. |
 306| =org-startup-indented=               | boolean | =true=  | Indent bodies under their headings, as =org-indent-mode=. =#+STARTUP: indent= / =noindent= override it. Mirrors =org-startup-indented=. |
 307| =org-hide-leading-stars=             | boolean | =false= | Show only a heading's last star, without indentation. =#+STARTUP: hidestars= / =showstars= override it. Mirrors =org-hide-leading-stars=. |
 308| =org-startup-align-all-tables=       | boolean | =false= | Align every table when a file opens. =#+STARTUP: align= / =noalign= override it. Mirrors =org-startup-align-all-tables=. |
 309| =org-startup-truncated=              | boolean | =false= | Long lines run off the right edge instead of wrapping. Mirrors =org-startup-truncated=.                        |
 310| =spell-check=                        | boolean | =false= | Check spelling while typing, outside code, links, dates, tags and keywords.                                     |
 311| =electric-pair-mode=                 | boolean | =true=  | Type brackets, =<>= and quotes in pairs. Mirrors =electric-pair-mode=.                                          |
 312| =org-startup-with-inline-images=     | boolean | =false= | Show image links as images when a file opens. =#+STARTUP: inlineimages= / =noinlineimages= override it. Mirrors =org-startup-with-inline-images=. |
 313| =org-display-remote-inline-images=   | string  | ="skip"= | Images at http(s) links: =skip=, =download= (kept until orgstar quits) or =cache= (kept on disk). See [[file:09-links.org][Links]]. Mirrors =org-display-remote-inline-images=. |
 314| =org-startup-with-latex-preview=     | boolean | =false= | Show LaTeX fragments as typeset math when a file opens. =#+STARTUP: latexpreview= / =nolatexpreview= override it. Mirrors =org-startup-with-latex-preview=. |
 315| =org-use-speed-commands=             | boolean | =false= | Single keys at the start of a heading line run commands (=n=, =p=, =t=, =c=, …). Mirrors =org-use-speed-commands=. |
 316| =org-cycle-hide-drawer-startup=      | boolean | =true=  | Fold drawers when a file opens. =#+STARTUP: hidedrawers= / =nohidedrawers= override it. Mirrors =org-cycle-hide-drawer-startup=. |
 317| =org-cycle-hide-block-startup=       | boolean | =false= | Fold blocks when a file opens. =#+STARTUP: hideblocks= / =nohideblocks= override it. Mirrors =org-cycle-hide-block-startup=. |
 318| =display-line-numbers-type=          | boolean or string | =false= | Line numbers in the editor's gutter: =true=, =false=, ="relative"= or ="visual"=. See [[file:02-the-editor.org][The editor]]. |
 319| =org-agenda-span=                    | integer | =10=    | Days the agenda shows. Mirrors =org-agenda-span=.                                                               |
 320| =org-agenda-start-day=               | string  | ="+0d"= | The agenda's first day relative to today, as ="-3d"= or ="+0d"=. Only day offsets are accepted. Mirrors =org-agenda-start-day=. |
 321| =org-agenda-start-on-weekday=        | string  | ="1"=   | The day weeks start on, ="0"= (Sunday) to ="6"= (Saturday), for the week view and spans of 7 or 14 days. ="nil"= starts them on the day the view starts from. Mirrors =org-agenda-start-on-weekday=. |
 322| =org-deadline-warning-days=          | integer | =14=    | Days ahead the agenda and the deadline sparse tree warn about a deadline. A =-Nd= cookie in the timestamp overrides it. Mirrors =org-deadline-warning-days=. |
 323| =org-agenda-show-all-dates=          | boolean | =false= | Show days without entries in the agenda; today always shows. Emacs's default is =t=. Mirrors =org-agenda-show-all-dates=. |
 324| =org-agenda-skip-scheduled-if-done=  | boolean | =false= | Leave a done entry's scheduled date out of the agenda, even on its own day. Mirrors =org-agenda-skip-scheduled-if-done=. |
 325| =org-agenda-skip-deadline-if-done=   | boolean | =false= | Leave a done entry's deadline out of the agenda, even on its own day. Mirrors =org-agenda-skip-deadline-if-done=. |
 326| =org-habit-show-habits-only-for-today= | boolean | =true= | Show habits only on today's agenda. Off, a habit also shows on the later days it is scheduled for. Mirrors =org-habit-show-habits-only-for-today=. |
 327| =org-agenda-log-mode-items=          | string  | ="closed clock"= | What log mode shows, separated by spaces: =closed=, =clock= and =state=. Mirrors =org-agenda-log-mode-items=. |
 328| =org-agenda-todo-ignore-with-date=   | boolean | =false= | The TODO list leaves out entries with an active timestamp anywhere in their text. Mirrors =org-agenda-todo-ignore-with-date=. |
 329| =org-agenda-todo-ignore-scheduled=   | string  | ="nil"= | The TODO list leaves out scheduled entries: ="all"= (or ="t"=) all of them, ="future"= those scheduled after today, ="past"= today or before, ="N"= N or more days ahead, ="-N"= N or more days ago. Mirrors =org-agenda-todo-ignore-scheduled=. |
 330| =org-agenda-todo-ignore-deadlines=   | string  | ="nil"= | As the last, for deadlines: ="near"= (or ="t"=) those within their warning period, ="far"= those beyond it, ="all"=, ="future"=, ="past"=, ="N"=, ="-N"=. Mirrors =org-agenda-todo-ignore-deadlines=. |
 331| =org-agenda-todo-ignore-timestamp=   | string  | ="nil"= | As the last, for other active timestamps in the entry: ="all"= (or ="t"=), ="future"=, ="past"=, ="N"=, ="-N"=. Mirrors =org-agenda-todo-ignore-timestamp=. |
 332| =org-agenda-tags-todo-honor-ignore-options= | boolean | =false= | The four settings above apply to TODO-only matches (=M=) too. Mirrors =org-agenda-tags-todo-honor-ignore-options=. |
 333| =org-agenda-search-view-always-boolean= | boolean | =false= | The agenda's text search reads every string as =+word -word {regexp}= snippets, never as a phrase. Mirrors =org-agenda-search-view-always-boolean=. |
 334| =org-agenda-search-view-force-full-words= | boolean | =false= | Text search snippets match whole words only, as a leading =:= does. Mirrors =org-agenda-search-view-force-full-words=. |
 335| =org-refile-targets=                 | string  | =""=    | Refile targets as Lisp, as =org-refile-targets= takes them: =((nil :maxlevel . 3) (org-agenda-files :tag . "project"))=. =""= offers headings to level 3 in every file. See [[file:04-outlines.org][Outlines]]. Mirrors =org-refile-targets=. |
 336| =org-refile-use-outline-path=        | string  | ="file"= | How refile targets are written: =nil=, =t=, =file=, =full-file-path=, =buffer-name= or =title=. Mirrors =org-refile-use-outline-path=. |
 337| =org-refile-allow-creating-parent-nodes= | string | ="nil"= | =t= or =confirm=: a refile target typed as =TARGET/New heading= adds the heading; =confirm= asks first. Mirrors =org-refile-allow-creating-parent-nodes=. |
 338| =org-agenda-files=                   | string  | =""=    | Files and folders the agenda reads, separated by =\n=; a file that isn't =.org= lists more, one per line. =""= reads the folders' files. See [[file:07-agenda.org][The agenda]]. Mirrors =org-agenda-files=. |
 339| =org-icalendar-use-deadline=         | string  | ="event-if-not-todo todo-due"= | What a =DEADLINE= makes in iCalendar export: =event-if-not-todo=, =event-if-todo=, =event-if-todo-not-done=, =todo-due=. See [[file:12-export.org][Export]]. Mirrors =org-icalendar-use-deadline=. |
 340| =org-icalendar-use-scheduled=        | string  | ="todo-start"= | As the last, for =SCHEDULED=, with =todo-start=. Mirrors =org-icalendar-use-scheduled=. |
 341| =org-icalendar-include-todo=         | string  | ="nil"= | Tasks as =VTODO=: =nil=, =t= (not done), =all=, =unblocked=, or TODO keywords separated by spaces. Mirrors =org-icalendar-include-todo=. |
 342| =org-icalendar-combined-agenda-file= | string  | ="~/org.ics"= | Where Combine Agenda Files into iCalendar writes. Mirrors =org-icalendar-combined-agenda-file=. |
 343| =org-agenda-use-time-grid=           | boolean | =true=  | Grid lines at the times in =[org-agenda-time-grid]=, on the days it names. Mirrors =org-agenda-use-time-grid=. |
 344| =org-agenda-show-current-time-in-grid= | boolean | =true= | The now line on today's grid. Mirrors =org-agenda-show-current-time-in-grid=. |
 345| =org-agenda-sort-notime-is-late=     | boolean | =true=  | Lines without a time sort after timed ones for =time-up=, and lines without a date after dated ones for the date keys. Mirrors =org-agenda-sort-notime-is-late=. |
 346| =org-agenda-sort-noeffort-is-high=   | boolean | =true=  | Entries without an =Effort= sort as the longest for =effort-up=. Mirrors =org-agenda-sort-noeffort-is-high=. |
 347| =org-agenda-dim-blocked-tasks=       | string  | ="t"=   | =t= dims entries the two enforce settings block, =invisible= hides them (entries blocked only by checkboxes are still dimmed), =nil= shows them as usual. Mirrors =org-agenda-dim-blocked-tasks=. |
 348| =appt-message-warning-time=          | integer | =12=    | Minutes of warning before timed entries. An entry's =APPT_WARNTIME= property overrides it. Mirrors =appt-message-warning-time=. |
 349| =org-clock-idle-time=                | integer | =0=     | Minutes 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=. |
 350| =org-clock-into-drawer=              | string  | ="t"=   | Where clock lines go: ="t"= the log drawer (=LOGBOOK=), ="nil"= no drawer, ="N"= a drawer once there are N clock lines, or a drawer's name. An entry's =CLOCK_INTO_DRAWER= property overrides it. Mirrors =org-clock-into-drawer=. |
 351| =org-clock-rounding-minutes=         | integer | =0=     | Clocks start and end on multiples of this many minutes; =0= doesn't round. Mirrors =org-clock-rounding-minutes=. |
 352| =org-clock-out-remove-zero-time-clocks= | boolean | =false= | Clocking out removes a clock line of =0:00=. Mirrors =org-clock-out-remove-zero-time-clocks=. |
 353| =org-clock-in-switch-to-state=       | string  | =""=    | The keyword an entry takes when you clock in; =""= leaves it. Mirrors =org-clock-in-switch-to-state=. |
 354| =org-clock-out-when-done=            | string  | ="t"=   | ="t"=: marking the clocked entry done clocks out; ="nil"=: it doesn't; or the keywords that clock out, separated by spaces. Mirrors =org-clock-out-when-done=. |
 355| =org-clock-history-length=           | integer | =5=     | How many recently clocked entries orgstar remembers. Mirrors =org-clock-history-length=.                     |
 356
 357The default =org-todo-keywords= is Org's, ="TODO | DONE"=. Doom Emacs's set, as Import from Emacs writes it from a Doom configuration, is:
 358
 359#+BEGIN_SRC toml
 360org-todo-keywords = "TODO(t) PROJ(p) LOOP(r) STRT(s) WAIT(w) HOLD(h) IDEA(i) | DONE(d) KILL(k)"
 361#+END_SRC
 362
 363The 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.
 364
 365** [org-agenda-prefix-format]
 366
 367| Key      | Type   | Default                  | Effect                              |
 368|----------+--------+--------------------------+-------------------------------------|
 369| =agenda= | string | =" %i %-12:c%?-12t% s"=  | Prefix of lines in the day view     |
 370| =todo=   | string | =" %i %-12:c"=           | Prefix of lines in the TODO list    |
 371| =tags=   | string | =" %i %-12:c"=           | Prefix of tag and property matches  |
 372
 373These mirror the entries of =org-agenda-prefix-format=. Rows show the category, time and leader in their own places; the rest of the format, such as =%e= or =%b=, shows after the category. A time written in heading text leaves the title when the =agenda= format contains =%t=. A view in =views.toml= can set its own with =prefix-format=. See [[file:07-agenda.org][The agenda]].
 374
 375** [org-agenda-sorting-strategy]
 376
 377| Key      | Type   | Default                                         | Effect                         |
 378|----------+--------+-------------------------------------------------+--------------------------------|
 379| =agenda= | string | ="habit-down time-up urgency-down category-keep"= | Order of lines within a day    |
 380| =todo=   | string | ="urgency-down category-keep"=                  | Order of the TODO list         |
 381| =tags=   | string | ="urgency-down category-keep"=                  | Order of tag and property matches |
 382| =search= | string | ="category-keep"=                               | Order of text search results   |
 383
 384These mirror the entries of =org-agenda-sorting-strategy=, keys separated by spaces. Unknown keys are ignored. A view in =views.toml= can set its own with =sorting-strategy=. The keys are listed in [[file:07-agenda.org][The agenda]].
 385
 386** [org-stuck-projects]
 387
 388| Key      | Type   | Default                  | Effect                                                          |
 389|----------+--------+--------------------------+-----------------------------------------------------------------|
 390| =match=  | string | ="+LEVEL=2/-DONE"=       | The entries that are projects                                    |
 391| =todo=   | string | ="TODO NEXT NEXTACTION"= | Keywords, separated by spaces, that make a project active; =*= for any open one |
 392| =tags=   | string | =""=                     | Tags, separated by spaces, that make a project active; =*= for any |
 393| =regexp= | string | =""=                     | An Emacs regular expression that makes a project active          |
 394
 395These mirror the four elements of =org-stuck-projects=. See [[file:07-agenda.org][The agenda]].
 396
 397** [org-agenda-time-grid]
 398
 399| Key     | Type   | Default                                | Effect                                    |
 400|---------+--------+----------------------------------------+-------------------------------------------|
 401| =when=  | string | ="daily today require-timed remove-match"= | Which days get a grid, separated by spaces |
 402| =times= | string | ="800 1000 1200 1400 1600 1800 2000"=      | The grid's times as =HHMM=                 |
 403
 404These mirror the first two elements of =org-agenda-time-grid=. =when= takes =daily= (views of one day), =today=, =weekly= (every day), =require-timed= (only days with a timed entry) and =remove-match= (no line at a time an entry has). The default adds =remove-match= to Org's, so that a grid line doesn't repeat an entry's time; ="daily today require-timed"= gives Org's grid. orgstar draws the lines itself, so Emacs's third and fourth elements, the strings for the lines, have no equivalent.
 405
 406** [org-structure-template-alist]
 407
 408Block templates for Insert Structure Template (=C-c C-,=) and =<= completion, each a key and the block type it inserts. They go over Org's default =org-structure-template-alist=: a key Org has (=s=, =q=, …) gets the new type, and other keys are added after Org's.
 409
 410#+BEGIN_SRC toml
 411[org-structure-template-alist]
 412el = "src emacs-lisp"
 413py = "src python"
 414#+END_SRC
 415
 416Keys are letters, digits, =_= and =-=. Without the table, Org's templates apply. Emacs import adds entries here and so does nothing else in the app; remove one by deleting its line.
 417
 418** [denote-templates]
 419
 420Text a new Denote note starts with after its front matter, chosen by key when =denote-prompts= has =template=. Mirrors =denote-templates=.
 421
 422#+BEGIN_SRC toml
 423[denote-templates]
 424report = "* Summary\n\n* Details\n"
 425memo = "* To\n\n* From\n"
 426#+END_SRC
 427
 428Keys are letters, digits, =_= and =-=. Emacs import adds entries here; remove one by deleting its line.
 429
 430** [key-bar]
 431
 432The buttons of the key bar above the on-screen keyboard on iPhone and iPad, in order: =iphone= where the editor is narrow (iPhone, and iPad in Slide Over or a narrow split), =ipad= where it is wide. Each is a list of ids: the key bar's own buttons, or any command id from the Commands list, =org.snippet:<trigger>= for a snippet and =macro.named.<name>= for a named keyboard macro. A list may run over several lines.
 433
 434#+BEGIN_SRC toml
 435[key-bar]
 436iphone = ["commands", "fold", "promote", "demote", "new-heading", "todo",
 437          "org.snippet:td", "macro.named.tidy", "edit.undo", "plan", "hide-keyboard"]
 438ipad = ["commands", "fold", "overview", "promote", "demote", "move-up", "move-down",
 439        "new-heading", "todo", "act", "schedule", "deadline", "tags", "open-link", "hide-keyboard"]
 440#+END_SRC
 441
 442| Id              | Button                                                         |
 443|-----------------+----------------------------------------------------------------|
 444| =commands=      | the Commands list                                              |
 445| =fold=          | =TAB=                                                          |
 446| =overview=      | =S-TAB=                                                        |
 447| =promote=       | =M-<left>=                                                     |
 448| =demote=        | =M-<right>=                                                    |
 449| =move-up=       | =M-<up>=                                                       |
 450| =move-down=     | =M-<down>=                                                     |
 451| =new-heading=   | =M-RET=                                                        |
 452| =todo=          | =C-c C-t=                                                      |
 453| =act=           | =C-c C-c=                                                      |
 454| =plan=          | a menu of Schedule, Deadline and Tags                          |
 455| =schedule=      | =C-c C-s=                                                      |
 456| =deadline=      | =C-c C-d=                                                      |
 457| =tags=          | =C-c C-q=                                                      |
 458| =open-link=     | =C-c C-o=                                                      |
 459| =bold=, =italic=, =code= | Bold, Italic and Code                                 |
 460| =hide-keyboard= | hides the keyboard                                             |
 461
 462Without a list, its default applies: =commands=, =fold=, =promote=, =demote=, =move-up=, =move-down=, =new-heading=, =todo= and =act=, then =plan= on iPhone or =schedule=, =deadline= and =tags= on iPad, then =hide-keyboard=. An empty list, =[]=, leaves the bar empty. An id that is no command on iPhone and iPad, such as a Mac-only command or a snippet that =snippets.toml= no longer has, is reported under the folder in Settings and skipped. Settings ▸ Key Bar on iOS writes this table, each list on one line, and Reset to Default removes the list; the Mac reads the table and has no key bar.
 463
 464** [[publish]]
 465
 466Publishing projects, one table each, as =org-publish-project-alist= has them. They're read when you publish; see [[file:12-export.org::*Publishing][Publishing]] for the keys. The Settings window leaves them as they are.
 467
 468** [theme]
 469
 470| Key                 | Type    | Default | Effect                                                                                       |
 471|---------------------+---------+---------+----------------------------------------------------------------------------------------------|
 472| =font=              | string  | =""=    | A font family. =""= uses the system's monospaced font.                                       |
 473| =body-font=         | string  | =""=    | A font family for prose, or ="system"= for the system's proportional font. =""= uses =font= throughout. |
 474| =font-size=         | integer | =13=    | Points.                                                                                      |
 475| =line-spacing=      | integer | =2=     | Points between lines.                                                                        |
 476| =text-width=        | integer | =0=     | The widest the text runs, in columns of =font=, centred in a wider editor. =0= uses the whole width. |
 477| =heading-size-step= | integer | =1=     | Points a heading is larger than the level below. Level 4 and deeper are body size.           |
 478| =light-theme=       | string  | ="default-light"= | The built-in theme for light appearance: =default-light=, =solarized-light=, =gruvbox-light=, =modus-operandi=, =catppuccin-latte=, =tomorrow= or =paper=. |
 479| =dark-theme=        | string  | ="default-dark"=  | The built-in theme for dark appearance: =default-dark=, =solarized-dark=, =gruvbox-dark=, =modus-vivendi=, =catppuccin-mocha=, =nord=, =dracula=, =tokyo-night= or =doom-one=. |
 480| =theme-file=        | string  | =""=    | A theme in its own file in the configuration folder, applied under the colors in =config.toml=. |
 481
 482Any other key in =[theme]= is a color; see Themes below.
 483
 484** [orgstar]
 485
 486| Key                         | Type    | Default       | Effect                                                                                  |
 487|-----------------------------+---------+---------------+-----------------------------------------------------------------------------------------|
 488| =save=                      | string  | ="automatic"= | =automatic= (one second after typing stops) or =explicit= (only with =⌘S=).            |
 489| =keymap=                    | string  | ="emacs"=     | =emacs=, =mac= or =doom=. Your own bindings go in =keymap.toml=.                       |
 490| =option-as-meta=            | string  | ="left"=      | Which Option key is Meta: =left=, =right=, =both= or =none=.                           |
 491| =completion-auto=           | string  | ="preset"=    | The completion list opens by itself as you type: =on=, =off=, or =preset= (on with =doom=, off with =emacs= and =mac=) (=corfu-auto=). |
 492| =completion-auto-delay=     | integer | =400=         | Milliseconds after typing stops before it opens (=corfu-auto-delay=, in seconds in Emacs). |
 493| =completion-auto-prefix=    | integer | =2=           | Characters typed before it opens (=corfu-auto-prefix=).                                  |
 494| =completion-style=          | string  | ="preset"=    | =prefix=: candidates start with what's typed; =fuzzy=: they have its letters in order, best first; =preset=: =fuzzy= with =doom=, =prefix= with =emacs= and =mac=. |
 495| =completion-words=          | boolean | =false=       | The list that opens by itself offers words from your buffers and folders where Org offers nothing. |
 496| =pdf-margin=                | integer | =50=          | PDF export's page margins, in points.                                                   |
 497| =pdf-font=                  | string  | =""=          | A font family for PDF export's text; =""= keeps the export's own.                       |
 498| =pdf-page-numbers=          | boolean | =true=        | Number PDF export's pages.                                                              |
 499| =tab-bar=                   | boolean | =false=       | A tab for each open buffer above the editor.                                            |
 500| =show-markup=               | boolean | =false=       | Show link brackets and emphasis markers.                                                |
 501| =show-hidden-files=         | boolean | =true=        | List dotfiles and dot folders in your folders.                                          |
 502| =ignored-folders=           | string  | see below     | Folder names never listed or searched, separated by spaces.                            |
 503| =agenda-include-subfolders= | boolean | =false=       | The agenda reads org files in subfolders too.                                           |
 504| =agenda-exclude-archives=   | boolean | =false=       | The agenda leaves out files that other agenda files archive to.                         |
 505| =reminders=                 | boolean | =true=        | Notify before timed entries.                                                            |
 506| =calendar-events=           | boolean | =false=       | Show events from Calendar in the agenda.                                                |
 507| =calendar-event-calendars=  | string  | =""=          | The calendars whose events show, by title or identifier, separated by commas; =""= for all. |
 508| =agenda-reminders=          | boolean | =false=       | Show incomplete reminders with a due date from Reminders in the agenda, read-only.      |
 509| =agenda-reminder-lists=     | string  | =""=          | The Reminders lists shown, by title or identifier, separated by commas; =""= for all.  |
 510| =global-capture-hotkey=     | boolean | =true=        | =⌃⌥Space= opens Capture from any app.                                                   |
 511| =menu-bar-item=             | boolean | =false=       | Keep orgstar in the menu bar, with capture and today's agenda; off shows it only while a clock runs. |
 512
 513The default =ignored-folders= is:
 514
 515#+BEGIN_SRC toml
 516ignored-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"
 517#+END_SRC
 518
 519** An example
 520
 521#+BEGIN_SRC toml
 522fill-column = 72
 523org-tags-column = 0
 524org-todo-keywords = "TODO(t) NEXT(n) WAIT(w@/!) | DONE(d!) CANCELED(c@)"
 525org-log-done = "time"
 526org-log-into-drawer = "LOGBOOK"
 527org-startup-truncated = true
 528org-agenda-span = 7
 529org-agenda-start-day = "+0d"
 530
 531[theme]
 532font = "JetBrains Mono"
 533font-size = 14
 534link = "#0a7ea4"
 535
 536[theme.todo]
 537WAIT = "#bf8700"
 538
 539[orgstar]
 540keymap = "doom"
 541save = "explicit"
 542#+END_SRC
 543
 544** Names from earlier versions
 545
 546Earlier 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.
 547
 548* keymap.toml, capture.toml and macros.toml
 549
 550=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 [[file:03-keys.org][Keys and commands]].
 551
 552#+BEGIN_SRC toml
 553[[bind]]
 554keys = "C-c a"
 555command = "app.agenda"
 556#+END_SRC
 557
 558=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 [[file:08-capture.org][Capture]].
 559
 560=views.toml= holds =[[view]]= tables for the agenda; see [[file:07-agenda.org][The agenda]].
 561
 562=macros.toml= holds named keyboard macros in a =[macros]= table, one line per macro: the name, then the keys in =keymap.toml='s notation, separated by spaces. Typed text is one key per character, with =SPC= for a space, and a question's answer is the keys that type it followed by =RET=. Name Last Macro… (=C-x C-k n=) adds a line, or replaces the line with the same name, and leaves the rest of the file as it is. orgstar reloads the file when it changes; the iOS app reads it with the folder's other files. Each macro runs as the command =macro.named.=/name/, which =keymap.toml= can bind. See [[file:03-keys.org::*Keyboard macros][Keyboard macros]].
 563
 564#+BEGIN_SRC toml
 565[macros]
 566# Marks the heading DONE and moves to the next one.
 567done-and-next = "C-c C-t C-n"
 568# Adds the tags work and review, answering C-c C-q's question.
 569tag-review = "C-c C-q w o r k : r e v i e w RET"
 570#+END_SRC
 571
 572A name has letters, digits, =-= and =_=. A line whose keys can't be read, or a table other than =[macros]=, is reported and skipped.
 573
 574* snippets.toml
 575
 576=snippets.toml= holds snippets: text you insert by typing a short trigger and pressing =TAB=, with fields to fill in, as yasnippet's snippets work in Emacs. A snippet with =file = true= is a template for a new file instead. orgstar ships no snippets; without the file there are none. How to use them is in [[file:02-the-editor.org][The editor]].
 577
 578#+BEGIN_SRC toml
 579[[snippet]]
 580trigger = "meet"
 581description = "Meeting notes"
 582body = """
 583,* Meeting with ${1:someone} %U
 584,** Agenda
 585- $0
 586,** Actions
 587- [ ] $1:
 588"""
 589
 590[[snippet]]
 591trigger = "wk"
 592description = "Week number"
 593body = "Week %<%V>"
 594
 595[[snippet]]
 596trigger = "weekly"
 597description = "Weekly review"
 598file = true
 599body = '''
 600,#+title: Week of %t
 601,#+filetags: :review:
 602
 603,* Done
 604- $1
 605,* Next
 606- $0
 607'''
 608#+END_SRC
 609
 610| Key           | Value                                                                                  |
 611|---------------+----------------------------------------------------------------------------------------|
 612| =trigger=     | What you type before =TAB=; no spaces. Required, and once per file.                    |
 613| =body=        | The text. Required.                                                                     |
 614| =description= | The name Insert Snippet…, the completion list and New File from Template… show; the trigger when left out. |
 615| =file=        | =true= for a template for New File from Template…; its trigger doesn't expand it.      |
 616
 617Bodies are usually multi-line strings: =""" … """= takes escapes such as =\n= and =\t=, and =''' … '''= takes the text exactly as written. A newline right after the opening quotes isn't part of the body. The other TOML files take multi-line strings too.
 618
 619A body can hold these, as yasnippet writes them:
 620
 621| Syntax                | Meaning                                                                                       |
 622|-----------------------+-----------------------------------------------------------------------------------------------|
 623| =$1=, =$2=, …         | A field, empty. =TAB= visits fields by number, whatever their order in the text.              |
 624| =${1:default}=        | A field with default text, which typing replaces. A default can hold other fields.            |
 625| =$0=, =${0:text}=     | Where the caret goes after the last field; =text= is selected then. Without it, the end of the snippet. |
 626| A number used twice   | A mirror: it shows what you type in the field. The occurrence with a default is the field; otherwise the first. |
 627| =\$=, =\\=, =\`=      | A literal =$=, =\= or =`=; in a default, =\}= is a literal =}=.                               |
 628
 629And the capture escapes that need no capture (see [[file:08-capture.org][Capture]]):
 630
 631| Escape                            | Inserts                                                                          |
 632|-----------------------------------+----------------------------------------------------------------------------------|
 633| =%t=, =%T=, =%u=, =%U=            | Today's date as an active or inactive timestamp, with the time for =%T= and =%U= |
 634| =%<…>=                            | The date in a =format-time-string= format, such as =%<%Y-%m-%d>=                 |
 635| =%^{Prompt}=                      | Asks in a prompt first, and inserts the answer                                   |
 636| =%^t=, =%^T=, =%^u=, =%^U=, =%^g= | Asks for a date or tags                                                          |
 637| =%\1=, =%\2=, …                   | The answer to the first, second, … =%^{…}= prompt                               |
 638| =%i=                              | The selected text, when Insert Snippet… is run on a selection                    |
 639| =%f=, =%F=                        | The file's name and path                                                         |
 640| =%?=                              | Where the caret goes last, as =$0=                                               |
 641| =%(…)=                            | An Emacs Lisp form, run in orgstar's interpreter                                 |
 642
 643A prompt takes a default and choices as in capture: =%^{Where}= with =|home|home|work= after the prompt's name offers =home= and =work= and inserts =home= when the answer is empty. Escapes inside a default (=${1:%t}=) are filled in too. =%a=, =%c=, =%k= and the other escapes about a capture insert nothing.
 644
 645Lines after the first take the indentation of the line the trigger is on.
 646
 647orgstar reads the file at launch and again when it changes. A file that isn't valid TOML is reported with its line, and the snippets read before stay. A snippet with a problem, such as one without a body, a trigger used twice, a =${= that isn't closed, or Emacs Lisp in a field (=${1:$(upcase yas-text)}=), is reported with the line of its =[[snippet]]= and left out; the others apply.
 648
 649Import from Emacs reads yasnippet's org-mode snippets into this file; see [[*yasnippet snippets][yasnippet snippets]].
 650
 651* In-file settings
 652
 653Keyword 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.
 654
 655** Keywords orgstar reads
 656
 657| Keyword                     | Effect                                                                                                                                          |
 658|-----------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------|
 659| =#+TODO=, =#+SEQ_TODO=      | A 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. |
 660| =#+TYP_TODO=                | A type sequence. As in Org, type sequences come first, then =#+TODO=, then =#+SEQ_TODO=.                                                        |
 661| =#+PRIORITIES=              | Three values: highest, lowest, default, as =A C B= or =1 5 3=. The default is =A C B=.                                                           |
 662| =#+STARTUP=                 | Startup options; see below.                                                                                                                     |
 663| =#+TAGS=                    | Tags 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. |
 664| =#+FILETAGS=                | Tags every heading in the file inherits, as =:work:project:=.                                                                                    |
 665| =#+PROPERTY=                | A file-wide property, as =#+PROPERTY: header-args :results output=. =NAME+= appends to the value.                                               |
 666| =#+CATEGORY=                | The file's category in the agenda. Without it the category is the file name.                                                                    |
 667| =#+ARCHIVE=                 | Where =C-c C-x C-a= archives to. The default is =%s_archive::=.                                                                                  |
 668| =#+COLUMNS=                 | The default column view format.                                                                                                                 |
 669| =#+LINK=                    | A link abbreviation, as =#+LINK: gh https://github.com/%s=.                                                                                      |
 670| =#+CONSTANTS=               | Constants for table formulas, as =#+CONSTANTS: c=299792458 pi=3.14=.                                                                             |
 671| =#+SETUPFILE=               | A file whose keyword lines count as this file's; see below.                                                                                     |
 672| =#+TITLE=, =#+AUTHOR=, =#+DESCRIPTION= | Used by export, Quick Look and Spotlight.                                                                                             |
 673| =#+OPTIONS=, =#+MACRO=, =#+INCLUDE=, =#+EXCLUDE_TAGS=, =#+SELECT_TAGS= | Export settings; see [[file:12-export.org][Export]].                                                                   |
 674
 675#+BEGIN_SRC org
 676,#+TODO: TODO(t) NEXT(n) WAIT(w@/!) | DONE(d!) CANCELED(c@)
 677,#+PRIORITIES: A E C
 678,#+STARTUP: content logdrawer
 679,#+FILETAGS: :work:
 680,#+CATEGORY: acme
 681#+END_SRC
 682
 683After 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.
 684
 685** #+STARTUP options
 686
 687| Option                                        | Effect                                                                   |
 688|-----------------------------------------------+--------------------------------------------------------------------------|
 689| =overview=, =fold=                            | Only top-level headings show when the file opens.                        |
 690| =content=                                     | All headings show, no bodies.                                            |
 691| =showall=, =nofold=                           | Everything shows.                                                        |
 692| =show2levels= … =show5levels= (any =showNlevels=) | Headings down to level N show.                                       |
 693| =showeverything=                              | Everything shows, including drawers and blocks; =VISIBILITY= properties are ignored. |
 694| =hidedrawers=, =nohidedrawers=                | Fold or don't fold drawers at startup.                                   |
 695| =hideblocks=, =nohideblocks=                  | Fold or don't fold blocks at startup.                                    |
 696| =indent=, =noindent=                          | Virtual indentation on or off.                                           |
 697| =hidestars=, =showstars=                      | Hide leading stars or show them.                                         |
 698| =align=, =noalign=                            | Align every table when the file opens, or don't.                         |
 699| =inlineimages=, =noinlineimages=              | Show image links as images, or don't.                                    |
 700| =latexpreview=, =nolatexpreview=              | Show LaTeX fragments as typeset math, or don't.                          |
 701| =shrink=                                      | Shrink table columns that have a width cookie.                           |
 702| =logdone=, =lognotedone=, =nologdone=         | Record a time, a note, or nothing when an entry becomes done.            |
 703| =logrepeat=, =lognoterepeat=, =nologrepeat=   | The same, when a repeating entry is completed.                           |
 704| =logreschedule=, =lognotereschedule=, =nologreschedule= | The same, when a scheduled date changes.                       |
 705| =logredeadline=, =lognoteredeadline=, =nologredeadline= | The same, when a deadline changes.                             |
 706| =logdrawer=, =nologdrawer=                    | Notes go in =LOGBOOK=, or under the heading.                             |
 707
 708After the startup visibility, orgstar applies each heading's =VISIBILITY= property and folds subtrees tagged =ARCHIVE=, unless =showeverything= is set.
 709
 710Completion offers every option of =org-startup-options=. Options not in the table above, such as =odd=, =entitiespretty=, =constSI= and the footnote options, are accepted and ignored.
 711
 712** Setup files
 713
 714=#+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:
 715
 716- A relative path is relative to the folder of the file that names it. =~= expands to your home folder. Quotes around the path are removed.
 717- A setup file can name further setup files; each is read once, and a file never reads itself.
 718- URLs (anything starting with =scheme://=) aren't fetched.
 719- A setup file that can't be read, or isn't UTF-8, is skipped without a message.
 720
 721Keywords 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.
 722
 723* Import from Emacs
 724
 725Import from Emacs reads your Emacs or Doom Emacs configuration and offers to carry its org settings, folders, capture templates, key bindings and agenda views over. Nothing changes until you choose Import.
 726
 727** Running it
 728
 7291. Open Settings ▸ General and click Import from Emacs…, or run Import from Emacs… from the command palette (=⇧⌘P=).
 7302. 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=, =config.org= or =custom.el=. Doom's own installation folder (one with =lisp/doom.el=) is skipped.
 7313. To read another configuration, click Choose… and pick a file or a folder. For a folder, orgstar reads =init.el=, =config.el= (or =config.org= when there is no =config.el=) and =custom.el= in it.
 7324. The sheet lists what it found under Settings, Folders, Capture templates, Key bindings, Structure templates, Agenda views and Snippets, each with the line it came from (=config.el:27=, or =Doom default=). Everything is selected; clear what you don't want.
 7335. Click Import. The sheet then summarizes what was imported and any problems.
 734
 735What Import does with each kind of item:
 736
 737- Settings are written to =config.toml=.
 738- Folders are added to the sidebar if they exist and aren't there already.
 739- Capture templates are appended to =capture.toml=, except those whose key is already in the file.
 740- Key bindings are appended to =keymap.toml=, except those already in the file with the same keys, command and state. Running the import again adds no duplicates.
 741- Agenda views are appended to =views.toml=, except those whose name is already in the file.
 742- Snippets are appended to =snippets.toml=, except those whose trigger is already in the file.
 743
 744The 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, snippets with Emacs Lisp, and files it couldn't read. The footer counts variables that aren't about org, which are left alone, and snippets skipped for their Emacs Lisp.
 745
 746A literate configuration (=config.org=) is read as =org-babel-load-file= and Doom tangle it: its =emacs-lisp= and =elisp= blocks, except blocks whose =:tangle= is =no= (set on the block, in a =#+HEADER:= line, in a =header-args= property or in =#+PROPERTY:=) and blocks under a COMMENT or =:ARCHIVE:= heading. Items show the line of =config.org= they came from. When the folder also has a =config.el=, it is read instead, as the file =config.org= tangles to.
 747
 748On iOS, Settings ▸ Import from Emacs reads a configuration folder you choose; see [[file:14-ios.org][iOS]].
 749
 750In the [[file:../install.org][Mac App Store version]], Import from Emacs first opens a picker at the configuration it finds, since the app can read only what you choose. For a Doom configuration, Choose Doom Folder… picks Doom's installation folder, so its org defaults are read; without it the footer says Doom's own org defaults were skipped. On Import, each folder to add opens a picker at that folder, and only the folders you choose there are added.
 751
 752** yasnippet snippets
 753
 754When the folder of the configuration read has a =snippets/org-mode/= folder, as =~/.config/doom/snippets/org-mode/= or =~/.emacs.d/snippets/org-mode/= do, its snippets are listed under Snippets. Each file's =# key:= becomes the trigger (the file's name when it has none), =# name:= the description, and the text after =# --= the body.
 755
 756Snippets with Emacs Lisp aren't imported, and are listed under Not Imported: backquoted forms (=`(format-time-string …)`=), transformations (=$(…)=) and =# type: command=. =# condition:=, =# expand-env:=, =# binding:= and =# group:= are ignored, as are the modes an =.yas-parents= file names. Only the folder beside the configuration is read: other folders in =yas-snippet-dirs=, and Doom's own snippet library, aren't. In the Mac App Store version and on iOS, the folder is read when it is inside the folder you chose.
 757
 758See [[file:15-alongside-emacs.org][Alongside Emacs]] for how expanding differs from yasnippet.
 759
 760** Doom Emacs
 761
 762A 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.
 763
 764A Doom configuration, or any configuration that enables =evil=, adds =keymap = "doom"=.
 765
 766** What it reads
 767
 768orgstar reads the configuration as Lisp data; it never runs it. It looks at these forms:
 769
 770| Form                                                                 | What orgstar takes                                                              |
 771|----------------------------------------------------------------------+---------------------------------------------------------------------------------|
 772| =setq=, =setq-default=, =setq!=, =setopt=, =csetq=                   | Each variable and value                                                         |
 773| =defvar=, =defcustom=                                                | The value, below every other assignment                                         |
 774| =custom-set-variables=                                               | Each quoted =(variable value)=                                                  |
 775| =after!=, =with-eval-after-load=, =eval-after-load=                  | The forms inside, ranked above plain assignments                                |
 776| =add-to-list= on =org-structure-template-alist=                      | The entry added                                                                 |
 777| =use-package=, =use-package!=                                        | Forms in =:config= and =:init=, and pairs in =:custom=                          |
 778| =progn=, =when=, =unless=, =if=, =let=, =let*=, =with-no-warnings=   | The forms inside. Conditions aren't evaluated, so every branch is read.         |
 779| =map!= (Doom)                                                        | Bindings, with =:leader= (=SPC=), =:localleader= (=SPC m=), =:prefix=, and state keywords such as =:n=, =:i=, =:v=, =:nv= |
 780| =define-key=, =keymap-set=, =global-set-key=, =keymap-global-set=    | Bindings                                                                        |
 781| =evil-define-key=, =evil-define-key*=                                | Bindings in the =normal=, =insert= or =visual= state                            |
 782
 783When 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.
 784
 785orgstar 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.
 786
 787Only 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.
 788
 789** How variables map
 790
 791| Emacs variable                                                     | Becomes                                                                                       |
 792|--------------------------------------------------------------------+-----------------------------------------------------------------------------------------------|
 793| =fill-column=, =org-tags-column=, =appt-message-warning-time=, =org-deadline-warning-days= | The same key, when the value is a number                              |
 794| =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-with-latex-preview=, =org-startup-indented=, =org-hide-leading-stars=, =org-startup-align-all-tables=, =org-startup-truncated= | The same key: =nil= or an empty list is =false=, anything else =true= |
 795| =org-hide-drawer-startup=, =org-hide-block-startup=                | =org-cycle-hide-drawer-startup=, =org-cycle-hide-block-startup=                               |
 796| =org-M-RET-may-split-line=                                         | =org-M-RET-may-split-line=, from the =default= entry of an alist; other per-context entries aren't supported |
 797| =org-agenda-prefix-format=                                         | =[org-agenda-prefix-format]=: a string sets all three views; an alist sets =agenda=, =todo= and =tags= |
 798| =org-agenda-sorting-strategy=                                      | =[org-agenda-sorting-strategy]=: a list sets all four views; an alist sets =agenda=, =todo=, =tags= and =search=. A list with =user-defined-up= or =user-defined-down= isn't imported |
 799| =org-agenda-sort-notime-is-late=, =org-agenda-sort-noeffort-is-high=, =org-agenda-use-time-grid=, =org-agenda-show-current-time-in-grid= | The same key, as booleans                                     |
 800| =org-agenda-custom-commands=                                       | A =views.toml= view per command, named by its description, and per block a =[[view.block]]=. Types =agenda=, =alltodo=, =todo=, =tags=, =tags-todo=, =search= and =stuck=; settings =org-agenda-span=, =org-agenda-start-day=, =org-agenda-overriding-header=, =org-agenda-sorting-strategy=, =org-agenda-prefix-format= (a string) and =org-agenda-skip-function= as =org-agenda-skip-entry-if= or =org-agenda-skip-subtree-if=. Entries from =(add-to-list 'org-agenda-custom-commands …)= too. Other types, other settings and file lists aren't imported |
 801| =org-refile-targets=                                               | =org-refile-targets=, the value written as Lisp, when its files and specs are ones orgstar reads (not functions or variables) |
 802| =org-refile-use-outline-path=, =org-refile-allow-creating-parent-nodes= | The symbol as a string                                                          |
 803| =org-stuck-projects=                                               | =[org-stuck-projects]=: =match=, =todo=, =tags= and =regexp= from the four elements          |
 804| =org-agenda-time-grid=                                             | =[org-agenda-time-grid]=: =when= from the first element, =times= from the second; the strings are left out |
 805| =org-icalendar-use-deadline=, =org-icalendar-use-scheduled=        | The list's symbols, separated by spaces                                                       |
 806| =org-icalendar-include-todo=                                       | =nil=, =t=, =all= or =unblocked=, or a list of keywords separated by spaces                  |
 807| =org-icalendar-combined-agenda-file=                               | The file name, from a string or a simple form                                                 |
 808| =org-display-remote-inline-images=                                 | The symbol as a string, when it's =skip=, =download= or =cache=                              |
 809| =org-publish-project-alist=                                        | A =[[publish]]= table in =config.toml= per project whose publishing functions are =org-html-publish-to-html=, =org-md-publish-to-md= or =org-publish-attachment=: the directories, =:base-extension=, =:recursive=, =:exclude=, =:include=, =:body-only=, the sitemap properties and =:components=. Other properties are reported as left out |
 810| =org-log-done=, =org-log-reschedule=, =org-log-redeadline=         | The same key: =nil=, =time= (also =t=) or =note=                                              |
 811| =org-log-into-drawer=                                              | A string as given; =t= becomes ="LOGBOOK"=; =nil= becomes =""=                                 |
 812| =display-line-numbers-type=                                        | =true= unless =nil=; =relative= and =visual= as they are                                      |
 813| =auto-fill-mode=                                                   | =true= for =(add-hook 'org-mode-hook #'auto-fill-mode)= or =turn-on-auto-fill=, or in =text-mode-hook= |
 814| =org-agenda-span=                                                  | A number, or =day= (1), =week= (7), =fortnight= (14), =month= (30), =year= (365)               |
 815| =org-clock-idle-time=                                             | Minutes; =nil= becomes =0= (never)                                                            |
 816| =org-clock-history-length=                                         | The same key, when the value is a positive number                                             |
 817| =org-clock-into-drawer=                                            | A drawer name as given, a number as a string, =t= or =nil=                                    |
 818| =org-clock-rounding-minutes=, =org-clock-out-remove-zero-time-clocks= | The same key                                                                                 |
 819| =org-clock-in-switch-to-state=                                      | A keyword string; a function isn't supported                                                  |
 820| =org-use-tag-inheritance=                                          | =t=, =nil=, a list of tags as names separated by spaces, or a regular expression in braces    |
 821| =org-tags-exclude-from-inheritance=                                | The list's tags separated by spaces                                                           |
 822| =org-tag-alist=                                                    | =#+TAGS= syntax: =("work" . ?w)= is =work(w)=; =:startgroup=, =:endgroup=, =:startgrouptag=, =:grouptags=, =:endgrouptag= and =:newline= become ={=, =}=, =[=, =:=, =]= and a new row |
 823| =org-clock-out-when-done=                                           | =t=, =nil=, or a list of keywords as a string separated by spaces                            |
 824| =org-agenda-start-day=                                             | A day offset such as ="-3d"=; =nil= becomes ="+0d"=. Other forms aren't supported.            |
 825| =org-agenda-start-on-weekday=                                      | ="0"= to ="6"=, or ="nil"=                                                                    |
 826| =org-agenda-log-mode-items=                                        | The symbols =closed=, =clock= and =state= of the list, separated by spaces                      |
 827| =org-agenda-todo-ignore-scheduled=, =-deadlines=, =-timestamp=      | The symbol or number as a string; =org-agenda-todo-ignore-with-date= and =org-agenda-tags-todo-honor-ignore-options= as booleans |
 828| =org-track-ordered-property-with-tag=                              | A tag name as given; =t= becomes ="t"=, =nil= ="nil"=                                         |
 829| =org-roam-directory=, =org-roam-dailies-directory=                 | The same keys, when the value is a string or a form that makes one                          |
 830| =denote-directory=, =denote-journal-directory=, =denote-journal-keyword= | The same keys, when the value is a string |
 831| =denote-prompts=                                                   | The same key, the symbols separated by spaces                                                 |
 832| =denote-directory= as a list, =denote-silo-directories=            | The same key, the folders separated by =:=                                                    |
 833| =denote-sequence-scheme=, =denote-journal-interval=                 | The same key                                                                                  |
 834| =denote-templates=                                                 | =[denote-templates]=: entries whose text is a string or =concat= of strings; a function is listed as unsupported |
 835| =denote-journal-title-format=                                      | The same key; the symbols =day-date-month-year=, =-24h= and =-12h= become their formats       |
 836| =org-roam-dailies-capture-templates=                               | =org-roam-dailies-file=, =-head= and =-entry=, from the first template's =(file+head NAME HEAD)= target and template |
 837| =org-timer-format=, =org-timer-default-timer=                     | The same keys; a number becomes a string                                                     |
 838| =org-attach-id-dir=                                                | The same key, when the value is a string or an =expand-file-name= form                         |
 839| =org-attach-use-inheritance=                                       | =selective=, or =t= / =nil= as ="t"= / ="nil"=                                                 |
 840| =org-yank-image-save-method=                                       | =attach=, or a folder name                                                                     |
 841| =org-yank-dnd-method=                                              | =ask=, =attach=, =open= or =file-link=                                                         |
 842| =org-crypt-tag-matcher=                                            | The same key, when the value is a single tag                                                  |
 843| =org-archive-location=                                             | The same key, when the value is a =file::heading= string                                      |
 844| =org-structure-template-alist=                                     | =[org-structure-template-alist]=: each =("key" . "type")= entry that isn't one of Org's, from =setq= or =(add-to-list 'org-structure-template-alist …)= |
 845| =org-todo-keywords=                                                | =org-todo-keywords=, one line per sequence. Keywords with spaces are left out; =type= sequences are read as sequences. |
 846| =org-directory=                                                    | A folder to add                                                                               |
 847| =org-agenda-files=                                                 | =org-agenda-files=, the entries separated by =\n=; the string form becomes one entry naming the list file. Also a folder to add for each entry; for a =.org= file, its folder; none for a list file |
 848| =org-capture-templates=                                            | Templates for =capture.toml=; see below                                                       |
 849| =doom-font=                                                        | =font= and =font-size=, from =(font-spec :family … :size …)= or ="Family-14"=                 |
 850| =doom-variable-pitch-font=                                         | Not imported: orgstar uses one font                                                           |
 851| =doom-theme=                                                       | Not imported: set colors under =[theme]=                                                      |
 852| =evil-mode= in use, or Doom                                        | =keymap = "doom"=                                                                             |
 853
 854Any other =org-= or =appt-= variable is listed as having no equivalent.
 855
 856Capture 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.
 857
 858Key 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.
 859
 860** Limits of the Lisp reader
 861
 862- Comments (=;=) are skipped. Strings understand =\n=, =\t=, =\"= and line continuations; other escapes give the character itself.
 863- =#'= reads as =function=. Other =#= syntax is read as a symbol, so forms using it aren't understood.
 864- A syntax error anywhere in a file, such as an unclosed parenthesis, stops that file from being read at all. The error and its line show under Not Imported.
 865- Macros other than those in the table above are not expanded, and functions are not called. Settings made by code you wrote (a =defun= that calls =setq=, a hook) aren't found.
 866
 867* Themes
 868
 869The default theme has light and dark colors after GitHub's light and dark themes for text and code. TODO keywords, priorities and the agenda's statuses use the system's red, orange, blue and green, as iOS and macOS show them. It leaves the sidebar, the modeline, the agenda's background and the accent of buttons and toggles to the system.
 870
 871=light-theme= and =dark-theme= choose a built-in theme for each appearance instead (Settings ▸ Appearance ▸ Theme). The light themes are Default, Solarized Light, Gruvbox Light, Modus Operandi, Catppuccin Latte, Tomorrow and Paper; the dark themes are Default, Solarized Dark, Gruvbox Dark, Modus Vivendi, Catppuccin Mocha, Nord, Dracula, Tokyo Night and doom-one. Every one but Default sets every color key, the sidebar, modeline, agenda and accent included. An unknown name, or one of the other appearance, is reported and Default is used.
 872
 873In every built-in theme, text in a quieter color (tags, comments, keyword lines, planning lines and drawers, cancelled keywords, priority C, agenda times and categories) reads at 4.5:1 or more on the background, the WCAG AA level for body text. Markup characters, block delimiters and line numbers are dimmer. Solarized Light and Solarized Dark keep Solarized's own colors, which put body text and the colored keywords under 4.5:1 in places. The theme pickers on the Mac and in iOS Settings mark them Low contrast. Modus Operandi and Modus Vivendi reach 4.5:1 for every color.
 874
 875You change any of them by setting colors in =config.toml=, or by keeping a theme in its own file. Copy to Config Folder writes the two chosen themes, every color written out, into =my-theme.toml= and sets =theme-file= to it; it leaves an existing =my-theme.toml= as it is.
 876
 877Colors are strings in the form ="#rrggbb"= or ="#rrggbbaa"=. They go in these tables:
 878
 879| Table          | Effect                                                                 |
 880|----------------+------------------------------------------------------------------------|
 881| =[theme]=      | Sets a color for both light and dark appearance                        |
 882| =[theme.light]= | Sets a color for light appearance only                                |
 883| =[theme.dark]= | Sets a color for dark appearance only                                  |
 884| =[theme.todo]= | Colors TODO keywords by name, in both appearances, as =org-todo-keyword-faces= |
 885| =[theme.category]= | Colors agenda categories by name, in both appearances               |
 886
 887#+BEGIN_SRC toml
 888[theme]
 889heading-1 = "#005cc5"
 890
 891[theme.dark]
 892background = "#1e1e1e"
 893foreground = "#d4d4d4"
 894
 895[theme.todo]
 896WAIT = "#bf8700"
 897PROJ = "#8250df"
 898
 899[theme.category]
 900work = "#0a66d8"
 901#+END_SRC
 902
 903A keyword without its own color takes its class's color. Case doesn't matter in these lists:
 904
 905| Class        | Key              | Keywords                                                                         |
 906|--------------+------------------+----------------------------------------------------------------------------------|
 907| Under way    | =todo-next=      | =NEXT=, =STRT=, =START=, =STARTED=, =DOING=, =ACTIVE=, =INPROGRESS=, =IN-PROGRESS= |
 908| On hold      | =todo-waiting=   | =WAIT=, =WAITING=, =HOLD=, =ONHOLD=, =BLOCKED=, =DEFERRED=, =SOMEDAY=, =MAYBE=   |
 909| Cancelled    | =todo-cancelled= | Done keywords =KILL=, =KILLED=, =CANCELLED=, =CANCELED=, =CANCEL=, =SKIPPED=, =SKIP=, =ABORTED=, =NO=, =WONTFIX= |
 910| Other open   | =todo=           | Any other keyword that isn't done                                                |
 911| Other done   | =done=           | Any other done keyword                                                           |
 912
 913The classes color keywords in the editors, the iOS reader, the agenda and its widgets.
 914
 915A category without its own color gets a hue worked out from its name, the same on every run and device, at a lightness that reads on the appearance's background.
 916
 917=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.
 918
 919** Theme files
 920
 921To keep a theme in its own file, put it in the configuration folder with the same tables (=[theme]=, =[theme.light]=, =[theme.dark]=, =[theme.todo]=, =[theme.category]=) and name it in =config.toml=:
 922
 923#+BEGIN_SRC toml
 924[theme]
 925theme-file = "solarized.toml"
 926#+END_SRC
 927
 928The colors stack in this order, each over the one before: the themes chosen with =light-theme= and =dark-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.
 929
 930** Color keys
 931
 932| Key                     | Colors                                                       |
 933|-------------------------+--------------------------------------------------------------|
 934| =background=            | the editor's background; on the Mac, comparisons of versions |
 935| =foreground=            | body text; on the Mac, board cards and comparisons           |
 936| =cursor=                | the caret                                                    |
 937| =selection=             | selected text's background                                   |
 938| =accent=                | buttons, toggles and selection in lists; unset: the system's |
 939| =heading-1= … =heading-7= | headings of that level                                     |
 940| =heading-8=             | level 8 and deeper headings                                  |
 941| =todo=                  | TODO keywords not yet done; on the Mac, removed lines in comparisons |
 942| =todo-next=             | keywords of work under way: =NEXT=, =STRT= and the others above |
 943| =todo-waiting=          | keywords of work on hold: =WAIT=, =HOLD= and the others above |
 944| =done=                  | DONE keywords; on the Mac, added lines in comparisons        |
 945| =todo-cancelled=        | done keywords that cancel: =KILL=, =CANCELLED= and the others above |
 946| =priority=              | =[#A]= cookies; in the agenda, priorities other than A, B and C |
 947| =priority-a=            | agenda: priority A                                           |
 948| =priority-b=            | agenda: priority B                                           |
 949| =priority-c=            | agenda: priority C                                           |
 950| =tags=                  | =:tags:=                                                     |
 951| =link=                  | links                                                        |
 952| =timestamp=             | timestamps                                                   |
 953| =code=                  | =~code~= and inline source                                   |
 954| =verbatim=              | ~=verbatim=~                                                 |
 955| =inline-background=     | behind =~code~= and ~=verbatim=~                             |
 956| =markup=                | link brackets and emphasis markers                           |
 957| =comment=               | comments                                                     |
 958| =keyword=               | =#+KEYWORD= lines                                            |
 959| =metadata=              | planning lines, drawers, properties and clocks               |
 960| =special=               | footnotes, statistics cookies, targets, macros and LaTeX     |
 961| =block-background=      | the band behind blocks; board cards                          |
 962| =block-delimiter=       | =#+begin_= and =#+end_= lines                                |
 963| =table=                 | tables                                                       |
 964| =line-number=           | line numbers                                                 |
 965| =line-number-current=   | the caret's line number                                      |
 966| =syntax-keyword=        | code: keywords                                               |
 967| =syntax-string=         | code: strings                                                |
 968| =syntax-comment=        | code: comments                                               |
 969| =syntax-function=       | code: functions                                              |
 970| =syntax-type=           | code: types and modules                                      |
 971| =syntax-number=         | code: numbers, constants and escapes                         |
 972| =syntax-property=       | code: properties, attributes and tags                        |
 973| =syntax-label=          | code: labels                                                 |
 974| =sidebar-background=    | the folder sidebar and the outline                           |
 975| =sidebar-foreground=    | file and heading names there                                 |
 976| =sidebar-header=        | folder names there                                           |
 977| =modeline-background=   | the modeline and message line                                |
 978| =modeline-foreground=   | modeline text                                                |
 979| =modeline-highlight=    | the outline path in the modeline                             |
 980| =state-normal=          | the NORMAL tag (Doom keys)                                   |
 981| =state-insert=          | the INSERT tag                                               |
 982| =state-visual=          | the VISUAL and V-LINE tags                                   |
 983| =state-replace=         | the REPLACE tag                                              |
 984| =agenda-background=     | the agenda and board; the iOS widgets                        |
 985| =agenda-date=           | agenda day headers after today                               |
 986| =agenda-today=          | today's header and the now line                              |
 987| =agenda-time=           | times and statuses of agenda rows with the normal status     |
 988| =agenda-category=       | categories                                                   |
 989| =agenda-overdue=        | agenda: the status of entries past their deadline or scheduled date, and the Overdue group; past deadlines on board cards |
 990| =agenda-due-soon=       | agenda: the status of deadlines due today or coming up; other deadlines on board cards |
 991| =agenda-event=          | agenda: calendar events whose calendar has no color          |
 992| =habit-clear=           | habit graph: not due yet                                     |
 993| =habit-ready=           | habit graph: due                                             |
 994| =habit-alert=           | habit graph: due today, last chance                          |
 995| =habit-overdue=         | habit graph: overdue                                         |
 996
 997The default theme leaves =sidebar-background=, =sidebar-foreground=, =sidebar-header=, =modeline-background=, =modeline-foreground=, =agenda-background= and =state-replace= 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.
 998
 999An 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.
1000
1001* Appearance
1002
1003orgstar 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]=.
1004
1005* Fonts
1006
1007By default the editor uses one font for everything: body text, headings, code and tables. Choose it in Settings ▸ Appearance or with =font= under =[theme]=.
1008
1009- The Font menu lists installed monospaced families. =config.toml= accepts any family name; a family that isn't installed falls back to the system's monospaced font. Tags and tables line up in columns, so a proportional font there misaligns them.
1010- Body font (=body-font=) sets a second font for prose, as Emacs's =mixed-pitch-mode= does. Paragraphs, list text and headings use it. Tables, source and example blocks, verbatim and code, keyword lines, planning lines, drawers, timestamps and tags keep =font=, and so do a heading's stars and a line's leading blanks, bullet and checkbox, so text still starts under the indentation. Tags after a heading in the body font no longer line up at =org-tags-column=; the file is unchanged. A family that isn't installed falls back to =font=.
1011- =font-size= is the body size, at least 6 points.
1012- Headings are bold. Level 1 is =font-size= plus three times =heading-size-step=, level 2 plus two times, level 3 plus one time; level 4 and deeper are body size. Set =heading-size-step = 0= for one size throughout.
1013- =line-spacing= adds space between lines, in points.
1014- =text-width= keeps lines of text to that many columns of =font= in a wider editor, with equal margins either side and the line numbers beside the text, as =olivetti-mode= does in Emacs. Long lines wrap at it; with lines truncated (View ▸ Truncate Long Lines) the text takes the whole width. It changes only the display: =M-q= still fills to =fill-column=.
1015
1016On iPhone and iPad, the editor and reader use the same theme, read from the synced configuration folder. =font= and =body-font= apply 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, the =cursor= color and the =syntax-*= colors apply there too. See [[file:14-ios.org][iPhone and iPad]].
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form