From: Matthew Carter Date: Fri, 6 Feb 2015 14:44:14 +0000 (-0500) Subject: Add proper auto load comment/code in the theme file X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/7700da195a42c3aea92fa913e244ead94abf8c8b Add proper auto load comment/code in the theme file --- diff --git a/ahungry-theme-autoloads.el b/ahungry-theme-autoloads.el deleted file mode 100644 index 36923e142..000000000 --- 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 5ed8ffe50..b513c9a3c 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