Merge pull request #709 from toctan/theme
Custom theme via prelude-theme variable
This commit is contained in:
commit
37101cb867
4 changed files with 9 additions and 4 deletions
|
@ -475,10 +475,10 @@ line:
|
||||||
(disable-theme 'zenburn)
|
(disable-theme 'zenburn)
|
||||||
```
|
```
|
||||||
|
|
||||||
Or you can use another theme altogether by adding something like:
|
Or you can use another theme altogether by adding something in `personal/preload` like:
|
||||||
|
|
||||||
```lisp
|
```lisp
|
||||||
(load-theme 'solarized-dark t)
|
(setq prelude-theme 'solarized-dark)
|
||||||
```
|
```
|
||||||
|
|
||||||
**P.S.** Solarized is not available by default - you'll have to
|
**P.S.** Solarized is not available by default - you'll have to
|
||||||
|
|
|
@ -93,6 +93,11 @@ Only modes that don't derive from `prog-mode' should be listed here."
|
||||||
:type 'number
|
:type 'number
|
||||||
:group 'prelude)
|
:group 'prelude)
|
||||||
|
|
||||||
|
(defcustom prelude-theme 'zenburn
|
||||||
|
"The default color theme, change this in your /personal/preload config."
|
||||||
|
:type 'symbol
|
||||||
|
:group 'prelude)
|
||||||
|
|
||||||
(provide 'prelude-custom)
|
(provide 'prelude-custom)
|
||||||
|
|
||||||
;;; prelude-custom.el ends here
|
;;; prelude-custom.el ends here
|
||||||
|
|
|
@ -73,7 +73,7 @@
|
||||||
"%b"))))
|
"%b"))))
|
||||||
|
|
||||||
;; use zenburn as the default theme
|
;; use zenburn as the default theme
|
||||||
(load-theme 'zenburn t)
|
(load-theme prelude-theme t)
|
||||||
|
|
||||||
(provide 'prelude-ui)
|
(provide 'prelude-ui)
|
||||||
;;; prelude-ui.el ends here
|
;;; prelude-ui.el ends here
|
||||||
|
|
2
init.el
2
init.el
|
@ -99,8 +99,8 @@ by Prelude.")
|
||||||
|
|
||||||
;; the core stuff
|
;; the core stuff
|
||||||
(require 'prelude-packages)
|
(require 'prelude-packages)
|
||||||
|
(require 'prelude-custom) ;; Needs to be loaded before core, editor and ui
|
||||||
(require 'prelude-ui)
|
(require 'prelude-ui)
|
||||||
(require 'prelude-custom) ;; Needs to be loaded before core and editor
|
|
||||||
(require 'prelude-core)
|
(require 'prelude-core)
|
||||||
(require 'prelude-mode)
|
(require 'prelude-mode)
|
||||||
(require 'prelude-editor)
|
(require 'prelude-editor)
|
||||||
|
|
Loading…
Reference in a new issue