AUTO DARKMODE LESGO

This commit is contained in:
2024-03-01 01:01:06 +02:00
parent a587038a14
commit dbc1ce8df8
2 changed files with 10 additions and 3 deletions

View File

@@ -33,12 +33,18 @@
;; 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
;; `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
;; numbers are disabled. For relative line numbers, set this to `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,
;; change `org-directory'. It must be set before org loads!
(setq org-directory "~/org/")

View File

@@ -49,6 +49,7 @@
(package! flymake-ruff)
(package! org-alert)
(package! org-contacts)
(package! darkman)
;; Doom's packages are pinned to a specific commit and updated from release to
;; release. The `unpin!' macro allows you to unpin single packages...