branch: externals/nano-theme
commit 6127576a3a216b10d354bbe17c0b2bca83db849c
Author: Kisaragi Hiu <m...@kisaragi-hiu.com>
Commit: GitHub <nore...@github.com>

    Add autoload for Custom
    
    Without this, load-theme would only be able to locate the theme if the
    file happens to be located under custom-theme-load-path.
---
 nano-theme.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/nano-theme.el b/nano-theme.el
index f95caa5..a2621e7 100644
--- a/nano-theme.el
+++ b/nano-theme.el
@@ -801,6 +801,9 @@ background color that is barely perceptible."
                              :background "#FFF9C4")))) ;; material color 
yellow L100
     ))
 
-(provide-theme 'nano)
+;;;###autoload
+(when (and (boundp 'custom-theme-load-path) load-file-name)
+  (add-to-list 'custom-theme-load-path
+               (file-name-as-directory (file-name-directory load-file-name))))
 
- 
+(provide-theme 'nano)

Reply via email to