branch: elpa/moe-theme
commit 4e6545b9018f4a6112896e34086dabc36e3f1659
Author: Nasy <[email protected]>
Commit: ono ono <[email protected]>
Maybe fixed the bug when installing over MELPA
Other themes have this line code, but not moe-theme.
Maybe fixed #83 and #92
---
moe-theme.el | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/moe-theme.el b/moe-theme.el
index 879de5c03b..100aba1258 100644
--- a/moe-theme.el
+++ b/moe-theme.el
@@ -411,6 +411,14 @@ as long as setq `moe-theme-mode-line-color' first."
(moe-theme-apply-color (moe-theme-get-color-by-frame-name)))))
+;;;###autoload
+(when (and (boundp 'custom-theme-load-path)
+ load-file-name)
+ ;; add theme folder to `custom-theme-load-path' when installing over MELPA
+ (add-to-list 'custom-theme-load-path
+ (file-name-as-directory (file-name-directory load-file-name))))
+
+
(provide 'moe-theme)
;; Local Variables: