emacs: Allow easier theme switching

This commit is contained in:
Charlotte Van Petegem 2024-09-12 23:38:47 +02:00
parent a1f09ed1d0
commit ed6e4913ca
3 changed files with 18 additions and 5 deletions

View file

@ -214,7 +214,18 @@
;; Theming
(use-package catppuccin-theme
:custom (catppuccin-flavor 'latte)
:config (load-theme 'catppuccin :no-confirm)
:config
(load-theme 'catppuccin :no-confirm)
(defun chvp--dark-mode ()
(interactive)
(progn
(setq catppuccin-flavor 'frappe)
(load-theme 'catppuccin :no-confirm)))
(defun chvp--light-mode ()
(interactive)
(progn
(setq catppuccin-flavor 'latte)
(load-theme 'catppuccin :no-confirm)))
)
(use-package no-littering