Skip to content

Commit

Permalink
Custom theme via prelude-theme variable
Browse files Browse the repository at this point in the history
  • Loading branch information
toctan committed Oct 15, 2014
1 parent b7c65e2 commit 28b9df0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -475,10 +475,10 @@ line:
(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
(load-theme 'solarized-dark t)
(setq prelude-theme 'solarized-dark)
```

**P.S.** Solarized is not available by default - you'll have to
Expand Down
5 changes: 5 additions & 0 deletions core/prelude-custom.el
Expand Up @@ -93,6 +93,11 @@ Only modes that don't derive from `prog-mode' should be listed here."
:type 'number
:group 'prelude)

(defcustom prelude-theme 'zenburn
"The default color theme, change this in your /personal/preload config."
:type 'symbol
:group 'prelude)

(provide 'prelude-custom)

;;; prelude-custom.el ends here
2 changes: 1 addition & 1 deletion core/prelude-ui.el
Expand Up @@ -73,7 +73,7 @@
"%b"))))

;; use zenburn as the default theme
(load-theme 'zenburn t)
(load-theme prelude-theme t)

(provide 'prelude-ui)
;;; prelude-ui.el ends here
2 changes: 1 addition & 1 deletion init.el
Expand Up @@ -99,8 +99,8 @@ by Prelude.")

;; the core stuff
(require 'prelude-packages)
(require 'prelude-custom) ;; Needs to be loaded before core, editor and ui
(require 'prelude-ui)
(require 'prelude-custom) ;; Needs to be loaded before core and editor
(require 'prelude-core)
(require 'prelude-mode)
(require 'prelude-editor)
Expand Down

0 comments on commit 28b9df0

Please sign in to comment.