use a function for loading into emacs 24 load path
This commit is contained in:
parent
dc3c44e123
commit
b04fee1e57
|
@ -2,4 +2,6 @@
|
|||
(locate-file "solarized-definitions.el" custom-theme-load-path
|
||||
'("c" "")))
|
||||
|
||||
(load-into-load-path)
|
||||
|
||||
(create-solarized-theme dark)
|
||||
|
|
|
@ -458,9 +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))))
|
||||
|
||||
;;;###autoload
|
||||
(when load-file-name
|
||||
(add-to-list 'custom-theme-load-path
|
||||
(file-name-as-directory (file-name-directory load-file-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)
|
||||
|
|
|
@ -2,4 +2,6 @@
|
|||
(locate-file "solarized-definitions.el" custom-theme-load-path
|
||||
'("c" "")))
|
||||
|
||||
(load-into-load-path)
|
||||
|
||||
(create-solarized-theme light)
|
||||
|
|
Loading…
Reference in New Issue