Lacquer is a util that switches theme/font/font-size and to configure cache ;)
ps: using it with `which-key’ is recommended.
- Use both the seletor and the shortcut key to switch themes/font.
- Load previous theme/font/font-size after restarting the emacs.
- Each theme can be configured individually.
- Download unused themes automatically with package.el.
- Generate interactive function automatically.
Download el file to your load-path.
(use-package lacquer
:ensure nil
:load-path "~/.emacs.d/site-lisp/lacquer"
:hook
(after-init . lacquer-mode)
:custom
(lacquer/cache "~/.emacs.d/lacquer")
(lacquer/theme-list '((monokai-theme monokai)
(monokai-pro-theme monokai-pro)
(dracula-theme dracula)
(doom-themes doom-one-light)
(doom-themes doom-vibrant)
(doom-themes doom-nord)
(leuven-theme leuven (setq leuven-scale-outline-headlines nil))
(leuven-theme leuven-dark (setq leuven-scale-outline-headlines nil))))
(lacquer/font-list '(Menlo
Roboto\ Mono
Anonymous\ Pro
FantasqueSansMono
FiraMono
Fira\ Code
Operator\ Mono
Inconsolata
Iosevka))
(lacquer/default-font-size 130))
Variable | Default | type | Description |
---|---|---|---|
lacquer/theme-list | ’((monokai-theme monokai)) | list | Theme list. E.g: ‘((theme-package-name theme-name config)). |
lacquer/default-theme | ‘monokai | list | Default theme. |
lacquer/cache | ”~/.emacs.d/.lacquer” | string | Path of lacquer cache. |
lacquer/keys-map-index | ’(“1” “2” “3” … “a” “b” “c” … “z 1” “z 2”) | list | Keys map. |
lacquer/font-list | ‘(Menlo Fira\ Code) | list | Font list. E.g: ‘(font-name). |
lacquer/default-font | ‘Menlo | symbol | Default font. |
lacquer/default-font-size | 135 | integer | Default font size. |
lacquer/theme-prefix-key | “C-c T” | string | Trigger theme of prefix key. |
lacquer/font-prefix-key | “C-c F” | string | Trigger font of prefix key. |
lacquer/font-size-step | 5 | integer | Change font size of step. |
Command | Description |
---|---|
lacquer-current-theme | Print current theme. |
lacquer-current-font | Print current font. |
lacquer-theme-selector | Open theme selector in the minibuffer. |
lacquer-font-selector | Open font selector in the minibuffer. |
lacquer-font-size-increase | Font size increase. |
lacquer-font-size-decrease | Font size decrease. |
- Distinguish between light and dark theme.
- Switch theme according to time.