forked from rschmukler/doom.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path+theming.el
42 lines (37 loc) · 1.52 KB
/
+theming.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
;;; private/rschmukler/theming.el -*- lexical-binding: t; -*-
;; (setq neo-theme 'icons)
(doom-themes-neotree-config)
(setq doom-themes-enable-bold t ; if nil, bold is universally disabled
doom-themes-enable-italic t) ; if nil, italics is universally disabled
(doom-themes-org-config)
(defun rs/reload-theme-in-all-frames ()
"Function to force the reloading of the active theme in all frames.
To be called from emacsclient after modifying the theme file"
(dolist (frame (visible-frame-list))
(with-selected-frame frame (doom/reload-theme))))
(defun rs/initialize-theming ()
(when (window-system)
(add-to-list 'default-frame-alist '(alpha . (95)))
(set-frame-parameter (selected-frame) 'alpha '(95)))
(when (eq system-type 'darwin)
(ns-auto-titlebar-mode)
(set-face-attribute 'default nil
:family "mononoki"
:height 140
:weight 'normal
:width 'normal)
(load-theme 'doom-dream-gradient t))
(when (eq system-type 'gnu/linux)
(set-face-attribute 'default nil
:family "mononoki"
:height 120
:weight 'normal
:width 'normal)
(load-theme 'wpg-autogenerated t)))
(cond
((window-system) (rs/initialize-theming))
((daemonp) (add-hook 'after-make-frame-functions
'(lambda (frame)
(with-selected-frame frame
(rs/initialize-theming))))))
(setq +ivy-buffer-icons t)