branch: elpa/color-theme-tangotango
commit 7eedc61e079682d81e718090d480744152a3da2f
Author: Julien Barnier <[email protected]>
Commit: Julien Barnier <[email protected]>
Add autoload function for ELPA install
---
tangotango-theme.el | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/tangotango-theme.el b/tangotango-theme.el
index 73f51a8..151c664 100644
--- a/tangotango-theme.el
+++ b/tangotango-theme.el
@@ -237,6 +237,15 @@
)
+;; Autoload for MELPA
+
+;;;###autoload
+(and load-file-name
+ (boundp 'custom-theme-load-path)
+ (add-to-list 'custom-theme-load-path
+ (file-name-as-directory
+ (file-name-directory load-file-name))))
+
(provide-theme 'tangotango)
;;; tangotango-theme.el ends here