syohex / lacquer

a util that switches theme and to configure cache ;)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lacquer

Lacquer is a util that switches theme/font/font-size and to configure cache ;)

ps: using it with `which-key’ is recommended.

Features

  • 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.

Screencast

./theme-selector.png

./theme-keys.png

./font-selector.png

./font-keys.png

Installation

Download el file to your load-path.

Usage

(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))

Customization

VariableDefaulttypeDescription
lacquer/theme-list’((monokai-theme monokai))listTheme list. E.g: ‘((theme-package-name theme-name config)).
lacquer/default-theme‘monokailistDefault theme.
lacquer/cache”~/.emacs.d/.lacquer”stringPath of lacquer cache.
lacquer/keys-map-index’(“1” “2” “3” … “a” “b” “c” … “z 1” “z 2”)listKeys map.
lacquer/font-list‘(Menlo Fira\ Code)listFont list. E.g: ‘(font-name).
lacquer/default-font‘MenlosymbolDefault font.
lacquer/default-font-size135integerDefault font size.
lacquer/theme-prefix-key“C-c T”stringTrigger theme of prefix key.
lacquer/font-prefix-key“C-c F”stringTrigger font of prefix key.
lacquer/font-size-step5integerChange font size of step.

Command

CommandDescription
lacquer-current-themePrint current theme.
lacquer-current-fontPrint current font.
lacquer-theme-selectorOpen theme selector in the minibuffer.
lacquer-font-selectorOpen font selector in the minibuffer.
lacquer-font-size-increaseFont size increase.
lacquer-font-size-decreaseFont size decrease.

TODOList

  • Distinguish between light and dark theme.
  • Switch theme according to time.

About

a util that switches theme and to configure cache ;)


Languages

Language:Emacs Lisp 100.0%