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

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

[elpa] master 7700da1 1/3: Add proper auto load comment/code in the them


From: Matthew Carter
Subject: [elpa] master 7700da1 1/3: Add proper auto load comment/code in the theme file
Date: Fri, 06 Feb 2015 14:46:30 +0000

branch: master
commit 7700da195a42c3aea92fa913e244ead94abf8c8b
Author: Matthew Carter <address@hidden>
Commit: Matthew Carter <address@hidden>

    Add proper auto load comment/code in the theme file
---
 ahungry-theme-autoloads.el |   18 ------------------
 ahungry-theme.el           |    6 ++++++
 2 files changed, 6 insertions(+), 18 deletions(-)

diff --git a/ahungry-theme-autoloads.el b/ahungry-theme-autoloads.el
deleted file mode 100644
index 36923e1..0000000
--- a/ahungry-theme-autoloads.el
+++ /dev/null
@@ -1,18 +0,0 @@
-;;; ahungry-theme-autoloads.el --- automatically extracted autoloads
-;;
-;;; Code:
-(add-to-list 'load-path (or (file-name-directory #$) (car load-path)))
-(when (boundp 'custom-theme-load-path)
-  (add-to-list 'custom-theme-load-path (or (file-name-directory #$) (car 
load-path))))
-
-;;;### (autoloads nil nil ("ahungry-theme-pkg.el" "ahungry-theme.el"
-;;;;;;  "color-theme-ahungry.el") (21716 20244 379937 516000))
-
-;;;***
-
-;; Local Variables:
-;; version-control: never
-;; no-byte-compile: t
-;; no-update-autoloads: t
-;; End:
-;;; ahungry-theme-autoloads.el ends here
diff --git a/ahungry-theme.el b/ahungry-theme.el
index 5ed8ffe..b513c9a 100644
--- a/ahungry-theme.el
+++ b/ahungry-theme.el
@@ -186,6 +186,12 @@
    '(red "#ffffff"))
   )
 
+;;;###autoload
+(when (and load-file-name (boundp 'custom-theme-load-path))
+ (add-to-list
+      'custom-theme-load-path
+      (file-name-as-directory (file-name-directory load-file-name))))
+
 (provide-theme 'ahungry)
 
 ;;; ahungry-theme.el ends here



reply via email to

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