commit 8b09748c89f595fd2ec4cb290313efd712545469
parent c1ae539d3ae4d75f3f85489cd614ac5a679fc95e
Author: Noam Postavsky <npostavs@gmail.com>
Date: Fri, 4 May 2012 17:05:55 -0400
custom-theme-load-path was added in Emacs 24
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/solarized-theme.el b/solarized-theme.el
@@ -562,7 +562,7 @@
(when childtheme (funcall childtheme))))
;;;###autoload
-(when load-file-name
+(when (and (boundp 'custom-theme-load-path) load-file-name)
(add-to-list 'custom-theme-load-path
(file-name-as-directory (file-name-directory load-file-name))))