forked from purcell/emacs.d
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit-themes.el
50 lines (41 loc) · 1.42 KB
/
init-themes.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
43
44
45
46
47
48
49
50
(require 'color-theme-autoloads)
(autoload 'color-theme-zenburn "zenburn" "A low contrast color theme" t)
(autoload 'color-theme-twilight "color-theme-twilight" "A dark color theme" t)
(autoload 'color-theme-vivid-chalk "vivid-chalk" "A dark color theme" t)
(color-theme-initialize)
;; (color-theme-pierson) ; Light, favourite
;; (color-theme-high-contrast)
;; (color-theme-snowish)
;; (color-theme-marquardt)
;; (color-theme-clarity) ; dark
;; (color-theme-dark-laptop) ; dark
;; (color-theme-billw) ; dark
;; (color-theme-oswald) ; dark
;; (color-theme-zenburn) ; dark, low contrast
;; (color-theme-standard)
(defun light-colors ()
(interactive)
(preserving-default-font-size
(color-theme-pierson)))
(defun high-contrast ()
(interactive)
(preserving-default-font-size
(color-theme-vivid-chalk)
(set-face-attribute 'highlight nil :background "white" :foreground "black")))
(defun low-contrast ()
(interactive)
(preserving-default-font-size
(color-theme-zenburn)))
(defun medium-contrast ()
(interactive)
(preserving-default-font-size
(color-theme-taylor)))
(defun very-low-contrast ()
(interactive)
(preserving-default-font-size
(color-theme-zenburn)
(set-face-attribute 'default nil :background "#1f1f1f")))
(set-variable 'color-theme-is-global nil)
(add-hook 'after-make-window-system-frame-hooks 'high-contrast)
(add-hook 'after-make-console-frame-hooks 'color-theme-emacs-21)
(provide 'init-themes)