ui/doom: use initial-frame-alist & better +doom/reset-theme

This commit is contained in:
Henrik Lissner 2017-05-17 01:34:33 +02:00
parent bb07e84f7a
commit 44e672655d
2 changed files with 3 additions and 2 deletions

View File

@ -7,6 +7,7 @@
(let ((theme (or (car-safe custom-enabled-themes) +doom-theme)))
(when theme
(mapc #'disable-theme custom-enabled-themes))
(load "doom-themes-common.el" nil t)
(load-theme theme t)
(+doom|refresh-bright-buffers)))

View File

@ -57,8 +57,8 @@
;; Dark frames by default
(when (display-graphic-p)
(push (cons 'background-color (face-background 'default)) default-frame-alist)
(push (cons 'foreground-color (face-foreground 'default)) default-frame-alist))
(push (cons 'background-color (face-background 'default)) initial-frame-alist)
(push (cons 'foreground-color (face-foreground 'default)) initial-frame-alist))
(defun +doom|buffer-mode-on ()
"Enable `doom-buffer-mode' in buffers that are real (see