UserDefaults Keys#

All settings live under the com.github.munepi.galley domain.

KeyTypePurpose
syncTexEditorStringEditor used for inverse search: emacs (default), vscode, vimtex or custom. Set from the SyncTeX menu. See Inverse Search.
customEditorCommandStringInverse-search command for the Custom editor. See Custom Editor.
emacsclientPathStringExplicit path to emacsclient. See Emacsclient Path.
vimtexFlavorStringWhich binary VimTeX inverse search launches: auto (default; Neovim if present, otherwise Vim), nvim or vim.
vimPathStringAbsolute path to vim, when it is not in /opt/homebrew/bin, /usr/local/bin or /usr/bin. The system vim is built without +clientserver, so this usually points at MacVim.
nvimPathStringAbsolute path to nvim, for the same reason.
displayModeIntegerPage layout, as a PDFDisplayMode value: 0 single page, 1 single page continuous, 2 two pages, 3 two pages continuous. See Display Modes.
displaysAsBookBooleanBook Mode — page 1 stands alone as the cover.
displaysRTLBooleanRight-To-Left spreads, for 縦書き and other right-bound documents.
pageColorModeIntegerPage Color preset: 0 Normal (default), 1 Dark, 2 Sepia, 3 Orange, 4 Gray, 5 Charcoal. Set from View ▸ Page Color. See Page Color.
pageColorDarkPaperStringHidden override for the Dark paper color, as #RRGGBB. Values whose relative luminance exceeds 0.10 are ignored. Unset by default; does not affect Charcoal.
AppleFontSmoothingIntegerNot Galley’s own key, but read from its domain: 0 turns macOS font smoothing off for Galley alone. Unset by default since v0.6. See Text Weight.
CGFontRenderingFontSmoothingDisabledBooleanThe companion key to the above; set both together.

The display and page-color keys are written whenever you change the corresponding View menu item, which is why your choices survive a restart.

The two font-smoothing keys are the exception: they belong to macOS, not to Galley, and Galley no longer writes them. Versions up to v0.5 set them on every launch, so they may still be sitting in your preferences after an upgrade — defaults delete both to be rid of them.

For debug logging, see Debug Logging — logs are emitted via os_log, no UserDefaults key required.

Read current values#

defaults read com.github.munepi.galley

Reset everything#

defaults delete com.github.munepi.galley