Remove dark/bright mode switching functions
With doom-themes, it’s much easier to switch between different themes.
This commit is contained in:
parent
0682d7df78
commit
365a2a00f4
@ -1189,37 +1189,6 @@ Before this can be used, make sure the [[https://zhm.github.io/symbola/][Symbola
|
|||||||
(--set-emoji-font nil)
|
(--set-emoji-font nil)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
** Dark/bright mode
|
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
|
||||||
(defun gpolonkai/enable-dark-mode ()
|
|
||||||
"Turn on dark mode."
|
|
||||||
(load-theme 'doom-nord-light t)
|
|
||||||
(set-face-background 'hl-line "gray25")
|
|
||||||
(set-face-background 'whitespace-line "orange4"))
|
|
||||||
|
|
||||||
(defun gpolonkai/enable-bright-mode ()
|
|
||||||
"Turn on bright mode."
|
|
||||||
(load-theme 'doom-nord-aurora t)
|
|
||||||
(set-face-background 'hl-line "gray85")
|
|
||||||
(set-face-background 'whitespace-line "gold3"))
|
|
||||||
|
|
||||||
(defcustom gpolonkai/dark-mode t
|
|
||||||
"Controls whether dark mode is enabled or not."
|
|
||||||
:type 'boolean
|
|
||||||
:group 'gpolonkai
|
|
||||||
:initialize #'custom-initialize-set)
|
|
||||||
|
|
||||||
(defun gpolonkai/dark-mode (&optional enable)
|
|
||||||
"Toggles between dark and bright modes.
|
|
||||||
If ENABLE is set, explicitly enable dark mode despite the current setting."
|
|
||||||
(interactive "p")
|
|
||||||
(setq gpolonkai/dark-mode (if enable t (not gpolonkai/dark-mode)))
|
|
||||||
(if gpolonkai/dark-mode
|
|
||||||
(gpolonkai/enable-dark-mode)
|
|
||||||
(gpolonkai/enable-bright-mode)))
|
|
||||||
#+end_src
|
|
||||||
|
|
||||||
* Set up global minor modes provided by Emacs
|
* Set up global minor modes provided by Emacs
|
||||||
|
|
||||||
** Pretty lambdas
|
** Pretty lambdas
|
||||||
|
Loading…
Reference in New Issue
Block a user