ui/doom: use initial-frame-alist & better +doom/reset-theme
This commit is contained in:
parent
bb07e84f7a
commit
44e672655d
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue