aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/lisp/init-appearance.el17
1 files changed, 11 insertions, 6 deletions
diff --git a/.emacs.d/lisp/init-appearance.el b/.emacs.d/lisp/init-appearance.el
index 50b14e7..ffd641f 100644
--- a/.emacs.d/lisp/init-appearance.el
+++ b/.emacs.d/lisp/init-appearance.el
@@ -6,18 +6,23 @@
(custom-set-variables
'(initial-frame-alist '((fullscreen . maximized)))))
+(defun gx/set-appearance-for-frame (frame)
+ (select-frame frame)
+ (gx/set-appearance))
+
(defun gx/set-appearance ()
(when (display-graphic-p)
(when *is-a-linux*
(gx/set-appearance--linux))
(when *is-a-mac*
- (gx/set-appearance--mac))))
+ (gx/set-appearance--mac)))
+ (when (gx/maybe-require-package 'color-theme-sanityinc-tomorrow)
+ (color-theme-sanityinc-tomorrow-eighties)))
+
-(add-hook 'after-init-hook
- (lambda ()
- (gx/set-appearance)))
+(add-to-list 'after-make-frame-functions #'gx/set-appearance-for-frame)
+(add-hook 'after-init-hook #'gx/set-appearance)
-(when (gx/maybe-require-package 'atom-one-dark-theme)
- (load-theme 'atom-one-dark t))
+(setq custom-safe-themes t)
(provide 'init-appearance)