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

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

[nongnu] elpa/moe-theme 4e6545b901 339/352: Maybe fixed the bug when ins


From: ELPA Syncer
Subject: [nongnu] elpa/moe-theme 4e6545b901 339/352: Maybe fixed the bug when installing over MELPA
Date: Fri, 7 Jan 2022 04:00:03 -0500 (EST)

branch: elpa/moe-theme
commit 4e6545b9018f4a6112896e34086dabc36e3f1659
Author: Nasy <nasyxx@users.noreply.github.com>
Commit: ono ono <azazabc123@gmail.com>

    Maybe fixed the bug when installing over MELPA
    
    Other themes have this line code, but not moe-theme.
    
    Maybe fixed #83 and #92
---
 moe-theme.el | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/moe-theme.el b/moe-theme.el
index 879de5c03b..100aba1258 100644
--- a/moe-theme.el
+++ b/moe-theme.el
@@ -411,6 +411,14 @@ as long as setq `moe-theme-mode-line-color' first."
         (moe-theme-apply-color (moe-theme-get-color-by-frame-name)))))
 
 
+;;;###autoload
+(when (and (boundp 'custom-theme-load-path)
+           load-file-name)
+  ;; add theme folder to `custom-theme-load-path' when installing over MELPA
+  (add-to-list 'custom-theme-load-path
+               (file-name-as-directory (file-name-directory load-file-name))))
+
+
 (provide 'moe-theme)
 
 ;; Local Variables:



reply via email to

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