Skip to content

Instantly share code, notes, and snippets.

@lukaszkorecki
Created February 1, 2010 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lukaszkorecki/291644 to your computer and use it in GitHub Desktop.
Save lukaszkorecki/291644 to your computer and use it in GitHub Desktop.
; 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