From 8d38276f6b2d16325ca372dd3630653b21e6e7ed Mon Sep 17 00:00:00 2001 From: Grant Shoshin Shangreaux Date: Wed, 11 Oct 2023 07:53:34 -0500 Subject: Add: autoload magic comment to put theme in load path --- pumpkin-spice-theme.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'pumpkin-spice-theme.el') 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 -- cgit v1.2.3