-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeming.el
36 lines (26 loc) · 1.08 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
;; Cursor
(setq-default cursor-type 'bar)
(defadvice load-theme (before clear-previous-themes activate)
"Clear existing theme settings instead of layering them."
(mapc #'disable-theme custom-enabled-themes))
(defun load-X-theme (theme)
"Load theme when not in a terminal."
(interactive
(list
(intern (completing-read "Load custom theme: "
(mapcar #'symbol-name
(custom-available-themes))))))
(if (display-graphic-p)
(load-theme theme t)))
(defun load-powerline-theme (theme)
"Load a powerline theme from the themes directory"
(load (concat themes-dir "powerline-" theme "-theme.el")))
(defun powerline-gahag-theme ()
"Setup a mode-line with major and minor modes centered."
(setq-default mode-line-format powerline-gahag-format))
(defun powerline-gahag-light-theme ()
"Setup a mode-line with major and minor modes centered."
(setq-default mode-line-format powerline-gahag-light-format))
(add-to-list 'custom-theme-load-path themes-dir)
(load-powerline-theme "gahag")
(load-powerline-theme "gahag-light")