summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-10-11 07:53:34 -0500
committerGrant Shoshin Shangreaux <shoshin@cicadas.surf>2023-10-11 07:53:34 -0500
commit8d38276f6b2d16325ca372dd3630653b21e6e7ed (patch)
tree17f1d14b7b793c5a35658d92db7af906f9e92c07
parente87ad63bcf39cdde7b26bf5f1e30c899b0c6005c (diff)
Add: autoload magic comment to put theme in load pathHEADmain
-rw-r--r--pumpkin-spice-theme.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/pumpkin-spice-theme.el b/pumpkin-spice-theme.el
index d7e70ef..cd23f1a 100644
--- a/pumpkin-spice-theme.el
+++ b/pumpkin-spice-theme.el
@@ -74,6 +74,11 @@
(provide-theme 'pumpkin-spice)
+;;;###autoload
+(when load-file-name
+ (add-to-list 'custom-theme-load-path
+ (file-name-as-directory (file-name-directory load-file-name))))
+
(provide 'pumpkin-spice-theme)
;;; pumpkin-spice-theme.el ends here