Skip to content

Commit

Permalink
fix(auto-dark-mode): do not error out if dark mode not possible
Browse files Browse the repository at this point in the history
  • Loading branch information
winny- committed Nov 23, 2024
1 parent a7c9261 commit f0d78bb
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion configuration.org
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,12 @@ My favorite theme despite occasional low contrast.
:custom
(auto-dark-themes '((modus-vivendi) (modus-operandi)))
:init
(auto-dark-mode))
;; This major mode initialization will signal an error if it cannot find a
;; valid dark/light mode detection method. Not all computers work with this
;; major mode. Eat the error and carry on.
(condition-case dark-err
(auto-dark-mode)
(error (message "Could not activate auto-dark-mode. Carry on."))))
#+end_src
** A facility to streamline theme selection
#+BEGIN_SRC emacs-lisp
Expand Down

0 comments on commit f0d78bb

Please sign in to comment.