summary refs log tree commit diff stats
path: root/emacs/.emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d')
-rw-r--r--emacs/.emacs.d/main.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index af6edb20..fa04be07 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -99,6 +99,7 @@
 ;; definition.
 
 (eval-and-compile
+  (require 'subr-x)
   (use-package hook-helpers))
 
 ;;;; Customize
@@ -147,13 +148,14 @@
 
 (global-hl-line-mode +1)
 
-(let ((line (face-attribute 'mode-line :underline)))
+(define-hook-helper first-frame ()
+  (let ((line (face-attribute 'mode-line :underline)))
     (set-face-attribute 'mode-line          nil :overline   line)
     (set-face-attribute 'mode-line-inactive nil :overline   line)
     (set-face-attribute 'mode-line-inactive nil :underline  line)
     (set-face-attribute 'mode-line          nil :box        nil)
     (set-face-attribute 'mode-line-inactive nil :box        nil)
-    (set-face-attribute 'mode-line-inactive nil :background (face-attribute 'hl-line :background)))
+    (set-face-attribute 'mode-line-inactive nil :background (face-attribute 'hl-line :background))))
 
 ;;;;; Fonts