summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-10-11 07:52:19 -0500
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-10-11 07:52:19 -0500
commitdb39ff0516e071aa890585c39fe411ea355e8b06 (patch)
treecd6bdda886ffeea6398901b5d77c7e1a7b02d451
parent1a7b91541b05df7ace7d1ceb445aa441876154bd (diff)
Add: autoload magic comment to put theme into custom themesHEAD0.1.1main
-rw-r--r--halloweenie-theme.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/halloweenie-theme.el b/halloweenie-theme.el
index dfb907d..6b2f41d 100644
--- a/halloweenie-theme.el
+++ b/halloweenie-theme.el
@@ -84,6 +84,11 @@
(provide-theme 'halloweenie)
+;;;###autoload
+(when load-file-name
+ (add-to-list 'custom-theme-load-path
+ (file-name-as-directory (file-name-directory load-file-name))))
+
(provide 'halloweenie-theme)
;;; halloweenie-theme.el ends here