Created
February 1, 2010 12:07
-
-
Save lukaszkorecki/291644 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; easy way: (put this into your .emacs) | |
; locations | |
(setq emacsdir "~/.emacs.d") ; or wherever you keep it | |
(setq plugins-dir (concat emacsdir "/plugins")) ; ditto | |
(setq themes-dir (concat plugins-dir "/themes")) ; see above | |
; COLORZ | |
(defun color-theme-loader (theme-name) | |
"loads the color theme automatiacly." | |
(interactive "sTheme name: ") | |
(add-to-list 'load-path (concat plugins-dir "/color-theme")) | |
(load "color-theme") | |
(load-file (concat themes-dir "/" theme-name ".el")) | |
(funcall (intern (concat "color-theme-" theme-name))) | |
) | |
; now... you can use it in our .emacs: | |
(color-theme-loader "zenburn") ; or almost-monokai or whatever | |
;If you feel like changing stuff on the fly... | |
;`M-x color-theme-loader RET theme-name RET` | |
;and everything will be done for you. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment