emacs working again

This commit is contained in:
Charlie Root 2025-03-19 21:31:56 +01:00
commit af59d33353
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E
11 changed files with 7 additions and 497 deletions

View file

@ -15,32 +15,6 @@
;; Toggle between light and dark
(defun light ()
"Activate a light color theme."
(interactive)
(setq custom-enabled-themes '(modus-operandi))
(reapply-themes))
(defun dark ()
"Activate a dark color theme."
(interactive)
(setq custom-enabled-themes '(modus-vivendi))
(reapply-themes))
(when (maybe-require-package 'dimmer)
(setq-default dimmer-fraction 0.15)
(setq dimmer-buffer-exclusion-regexps '(" \\*\\(LV\\|transient\\)\\*"
"^ \\*.*posframe.*buffer.*\\*$"
"^\\*Minibuf-[0-9]+\\*"
"^.\\*which-key\\*$"
"^.\\*Echo.*\\*"))
(add-hook 'after-init-hook 'dimmer-mode)
(with-eval-after-load 'dimmer
(advice-add 'frame-set-background-mode :after (lambda (&rest args) (dimmer-process-all))))
)
(provide 'init-themes)
;;; init-themes.el ends here