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'. counsel-load-theme with 'SPC h t'.
#+begin_src emacs-lisp :tangle ./config.el #+begin_src emacs-lisp :tangle ./config.el
(use-package! base16-stylix-theme (unless (string= my/org-device "galaxy")
:ensure nil ;; Ensures it won't be installed if missing (ignore-errors
:config (require 'base16-stylix-theme)))
(setq doom-theme 'base16-stylix))
;; Check if base16-stylix-theme is available, otherwise fallback to doom-opera-light (setq doom-theme
(setq doom-theme (if (featurep 'base16-stylix-theme) (cond
'base16-stylix ((string= my/org-device "galaxy")
'doom-opera-light)) 'doom-opera-light)
((featurep 'base16-stylix-theme)
'base16-stylix)
(t 'doom-one)))
#+end_src #+end_src
* EVALUATE ELISP EXPRESSIONS * EVALUATE ELISP EXPRESSIONS