File tree Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Expand file tree Collapse file tree 2 files changed +21
-28
lines changed Original file line number Diff line number Diff line change @@ -823,29 +823,5 @@ contains Solarized symbols."
823
823
; ; haskell
824
824
(haskell-keyword-face (,@fg-cyan )))))))
825
825
826
- ;;;### autoload
827
- (when (boundp 'custom-theme-load-path )
828
- (add-to-list 'custom-theme-load-path
829
- (file-name-as-directory (file-name-directory load-file-name))))
830
-
831
- (defmacro create-solarized-theme (name description color-definitions )
832
- " Define the theme from the provided pieces.
833
- NAME is a bare symbol, DESCRIPTION is the text that will be presented to users,
834
- and COLOR-DEFINITIONS is the list of face-specs that comprise the theme."
835
- `(let ((name , name )
836
- (description , description )
837
- (color-definitions , color-definitions ))
838
- (custom-declare-theme name (custom-make-theme-feature name) description)
839
- (apply #'custom-theme-set-faces name color-definitions)
840
- (custom-theme-set-variables
841
- name
842
- ; ; This is obsolete, but something might still be referencing it.
843
- '(ansi-color-names-vector
844
- ,(apply #'vector
845
- (mapcar (lambda (color-name )
846
- (nth 1 (assoc color-name solarized-colors)))
847
- '(base02 red green yellow blue magenta cyan base2)))))
848
- (provide-theme name)))
849
-
850
826
(provide 'solarized-definitions )
851
827
; ;; solarized-definitions.el ends here
Original file line number Diff line number Diff line change 1
- ; ; -*- lexical-binding : t ; -*-
1
+ ; ; solarized-theme.el --- Solarized custom theme -*- lexical-binding : t ; -*-
2
2
3
3
(require 'solarized-definitions
4
4
(locate-file " solarized-definitions.el" custom-theme-load-path
5
5
'(" c" " " )))
6
6
7
- (create-solarized-theme 'solarized
8
- solarized-description
9
- (solarized-color-definitions))
7
+ (deftheme solarized solarized-description)
8
+
9
+ (apply #'custom-theme-set-faces 'solarized (solarized-color-definitions))
10
+
11
+ (custom-theme-set-variables
12
+ 'solarized
13
+ ; ; This is obsolete, but something might still be referencing it.
14
+ `(ansi-color-names-vector
15
+ ,(apply #'vector
16
+ (mapcar (lambda (color-name )
17
+ (nth 1 (assoc color-name solarized-colors)))
18
+ '(base02 red green yellow blue magenta cyan base2)))))
10
19
11
20
(cl-defun solarized-update-background-mode
12
21
(appearance &optional (frames (frame-list )))
@@ -31,3 +40,11 @@ that observes the background characteristic."
31
40
('dark 'light )
32
41
(_ 'dark ))))
33
42
(solarized-update-background-mode new-mode)))
43
+
44
+ ;;;### autoload
45
+ (when load-file-name
46
+ (add-to-list 'custom-theme-load-path
47
+ (file-name-as-directory (file-name-directory load-file-name))))
48
+
49
+ (provide-theme 'solarized )
50
+ ; ;; solarized-theme.el ends here
You can’t perform that action at this time.
0 commit comments