Merge pull request #47 from bostonaholic/master

add to custom-theme-load-path
This commit is contained in:
Greg Pfeil 2012-03-01 10:21:20 -08:00
commit ca29827639
3 changed files with 9 additions and 0 deletions

View File

@ -2,4 +2,6 @@
(locate-file "solarized-definitions.el" custom-theme-load-path
'("c" "")))
(load-into-load-path)
(create-solarized-theme dark)

View File

@ -458,4 +458,9 @@ the \"Gen RGB\" column in solarized-definitions.el to improve them further."
(apply 'custom-theme-set-faces ',theme-name ',theme-faces)
(provide-theme ',theme-name))))
(defun load-into-load-path ()
(when load-file-name
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name)))))
(provide 'solarized-definitions)

View File

@ -2,4 +2,6 @@
(locate-file "solarized-definitions.el" custom-theme-load-path
'("c" "")))
(load-into-load-path)
(create-solarized-theme light)