Next: , Previous: , Up: Modus themes for GNU Emacs   [Index]

5 Preview theme colors

The command modus-themes-list-colors uses minibuffer completion to select an item from the Modus themes and then produces a buffer with previews of its color palette entries. The buffer has a naming scheme that reflects the given choice, like ‘modus-operandi-list-colors’ for the modus-operandi theme.

The command modus-themes-list-colors-current skips the minibuffer selection process and just produces a preview for the current Modus theme.

When called with a prefix argument (‘C-u’ with the default key bindings), these commands will show a preview of the palette’s semantic color mappings instead of the named colors. In this context, “named colors” are entries that associate a symbol to a string color value, such as ‘(blue-warmer "#354fcf")’. Whereas “semantic color mappings” associate a named color to a symbol, like ‘(string blue-warmer)’, thus making the theme render all string constructs in the ‘blue-warmer’ color value (Option for palette overrides).

Aliases for those commands are modus-themes-preview-colors and modus-themes-preview-colors-current.

Each row shows a foreground and background coloration using the underlying value it references. For example a line with ‘#a60000’ (a shade of red) will show red text followed by a stripe with that same color as a backdrop.

The name of the buffer describes the given Modus theme and what the contents are, such as ‘*modus-operandi-list-colors*’ for named colors and ‘=*modus-operandi-list-mappings*’ for the semantic color mappings.