stylix fallback

This commit is contained in:
2025-04-11 21:54:01 -06:00
parent 4d514e0391
commit 8cdb4b5a9b

View File

@@ -299,15 +299,17 @@ Setting the theme to doom-one. To try out new themes, I set a keybinding for
counsel-load-theme with 'SPC h t'.
#+begin_src emacs-lisp :tangle ./config.el
(use-package! base16-stylix-theme
:ensure nil ;; Ensures it won't be installed if missing
:config
(setq doom-theme 'base16-stylix))
(unless (string= my/org-device "galaxy")
(ignore-errors
(require 'base16-stylix-theme)))
;; Check if base16-stylix-theme is available, otherwise fallback to doom-opera-light
(setq doom-theme (if (featurep 'base16-stylix-theme)
'base16-stylix
'doom-opera-light))
(setq doom-theme
(cond
((string= my/org-device "galaxy")
'doom-opera-light)
((featurep 'base16-stylix-theme)
'base16-stylix)
(t 'doom-one)))
#+end_src
* EVALUATE ELISP EXPRESSIONS