AUTO DARKMODE LESGO
This commit is contained in:
@@ -33,12 +33,18 @@
|
|||||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||||
;; `load-theme' function. This is the default:
|
;; `load-theme' function. This is the default:
|
||||||
(setq doom-theme 'doom-gruvbox-light)
|
;; (setq doom-theme 'doom-gruvbox-light)
|
||||||
|
(setq darkman-themes '(:light doom-gruvbox-light :dark doom-gruvbox))
|
||||||
;; This determines the style of line numbers in effect. If set to `nil', line
|
;; This determines the style of line numbers in effect. If set to `nil', line
|
||||||
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
;; numbers are disabled. For relative line numbers, set this to `relative'.
|
||||||
(setq display-line-numbers-type 'relative)
|
(setq display-line-numbers-type 'relative)
|
||||||
|
(when (daemonp)
|
||||||
|
(add-hook 'server-after-make-frame-hook #'darkman-mode)
|
||||||
|
(advice-add 'darkman-mode
|
||||||
|
:after
|
||||||
|
(lambda ()
|
||||||
|
(remove-hook 'server-after-make-frame-hook
|
||||||
|
#'darkman-mode))))
|
||||||
;; If you use `org' and don't want your org files in the default location below,
|
;; If you use `org' and don't want your org files in the default location below,
|
||||||
;; change `org-directory'. It must be set before org loads!
|
;; change `org-directory'. It must be set before org loads!
|
||||||
(setq org-directory "~/org/")
|
(setq org-directory "~/org/")
|
||||||
|
|||||||
@@ -49,6 +49,7 @@
|
|||||||
(package! flymake-ruff)
|
(package! flymake-ruff)
|
||||||
(package! org-alert)
|
(package! org-alert)
|
||||||
(package! org-contacts)
|
(package! org-contacts)
|
||||||
|
(package! darkman)
|
||||||
|
|
||||||
;; Doom's packages are pinned to a specific commit and updated from release to
|
;; Doom's packages are pinned to a specific commit and updated from release to
|
||||||
;; release. The `unpin!' macro allows you to unpin single packages...
|
;; release. The `unpin!' macro allows you to unpin single packages...
|
||||||
|
|||||||
Reference in New Issue
Block a user