mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
ui/doom: use initial-frame-alist & better +doom/reset-theme
This commit is contained in:
@ -7,6 +7,7 @@
|
|||||||
(let ((theme (or (car-safe custom-enabled-themes) +doom-theme)))
|
(let ((theme (or (car-safe custom-enabled-themes) +doom-theme)))
|
||||||
(when theme
|
(when theme
|
||||||
(mapc #'disable-theme custom-enabled-themes))
|
(mapc #'disable-theme custom-enabled-themes))
|
||||||
|
(load "doom-themes-common.el" nil t)
|
||||||
(load-theme theme t)
|
(load-theme theme t)
|
||||||
(+doom|refresh-bright-buffers)))
|
(+doom|refresh-bright-buffers)))
|
||||||
|
|
||||||
|
@ -57,8 +57,8 @@
|
|||||||
|
|
||||||
;; Dark frames by default
|
;; Dark frames by default
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(push (cons 'background-color (face-background 'default)) default-frame-alist)
|
(push (cons 'background-color (face-background 'default)) initial-frame-alist)
|
||||||
(push (cons 'foreground-color (face-foreground 'default)) default-frame-alist))
|
(push (cons 'foreground-color (face-foreground 'default)) initial-frame-alist))
|
||||||
|
|
||||||
(defun +doom|buffer-mode-on ()
|
(defun +doom|buffer-mode-on ()
|
||||||
"Enable `doom-buffer-mode' in buffers that are real (see
|
"Enable `doom-buffer-mode' in buffers that are real (see
|
||||||
|
Reference in New Issue
Block a user