Emacs: Reload theme after server makes frame.
* Scrollbar colors can only be set in GUI mode. * Re-set ruler-mode colors after reloading theme.
This commit is contained in:
parent
c7166f939e
commit
313fab7f2f
|
@ -1,6 +1,6 @@
|
|||
;;; appearance.el --- Configure appearance. -*- lexical-binding: t; -*-
|
||||
|
||||
;; Time-stamp: <2020-11-29T08:38:28+0100>
|
||||
;; Time-stamp: <2020-11-29T09:26:31+0100>
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
|
@ -70,8 +70,11 @@
|
|||
:config (progn
|
||||
(defun my/reload-theme ()
|
||||
(load-theme 'doom-outrun-electric t)
|
||||
(set-face-background 'scroll-bar (face-background 'default))
|
||||
(set-face-foreground 'scroll-bar (face-foreground 'shadow)))
|
||||
(when (display-graphic-p)
|
||||
(set-face-background 'scroll-bar (face-background 'default))
|
||||
(set-face-foreground 'scroll-bar (face-foreground 'shadow)))
|
||||
(when (fboundp #'my/ruler-set-colors)
|
||||
(my/ruler-set-colors)))
|
||||
(my/reload-theme)
|
||||
|
||||
(doom-themes-visual-bell-config) ; Flash modeline on error.
|
||||
|
@ -96,7 +99,8 @@
|
|||
"Make fringe in treemacs visible again."
|
||||
(set-window-fringes (selected-window) 8))
|
||||
(advice-add #'doom-themes-hide-fringes-maybe
|
||||
:after #'my/treemacs-reset-fringe)))
|
||||
:after #'my/treemacs-reset-fringe))
|
||||
:hook (server-after-make-frame . my/reload-theme))
|
||||
) ; unless slow-computer.
|
||||
|
||||
;; Neat modeline.
|
||||
|
|
Loading…
Reference in New Issue
Block a user