emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/nano-theme 6127576 07/24: Add autoload for Custom


From: ELPA Syncer
Subject: [elpa] externals/nano-theme 6127576 07/24: Add autoload for Custom
Date: Wed, 29 Sep 2021 08:57:47 -0400 (EDT)

branch: externals/nano-theme
commit 6127576a3a216b10d354bbe17c0b2bca83db849c
Author: Kisaragi Hiu <mail@kisaragi-hiu.com>
Commit: GitHub <noreply@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

[Prev in Thread] Current Thread [Next in Thread]