diff options
author | Kyle Meyer <kyle@kyleam.com> | 2020-12-23 19:30:47 -0500 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-12-24 00:25:22 -0500 |
commit | 42cc7148d36ff7c3c19382d75f9ce03654c19c08 (patch) | |
tree | 4042cf43eb03a0a4b483f191a39371d7821362c5 | |
parent | 59e63738ec39da962612d2aa95c0940f0b91edd9 (diff) | |
download | emacs.d-42cc7148d36ff7c3c19382d75f9ce03654c19c08.tar.gz |
Simplify autoloads generation
Let package-generate-autoloads do the work.
-rw-r--r-- | Makefile | 15 | ||||
-rw-r--r-- | init.el | 2 |
2 files changed, 6 insertions, 11 deletions
@@ -1,14 +1,9 @@ BATCH = emacs -Q --batch -LOADDEFS_FNAME = km-emacs-autoloads.el -LOADDEFS = lisp/$(LOADDEFS_FNAME) - +LOADDEFS = km-emacs-autoloads.el ELS = $(shell find lisp -maxdepth 1 \ - -type f \( -name "*.el" -and ! -name "$(LOADDEFS_FNAME)" \) -print) + -type f \( -name "*.el" -and ! -name "$(LOADDEFS)" \) -print) -$(LOADDEFS): $(ELS) - @$(BATCH) --eval "\ - (let* ((make-backup-files nil) \ - (default-directory \"$(CURDIR)\") \ - (generated-autoload-file (expand-file-name \"$(LOADDEFS)\"))) \ - (update-directory-autoloads \"lisp/\"))" +lisp/$(LOADDEFS): $(ELS) + cd lisp && $(BATCH) -l package --eval \ + '(package-generate-autoloads "km-emacs" default-directory)' @@ -33,7 +33,7 @@ (add-to-list 'custom-theme-load-path km/init-lisp-dir) (require 'km-util) -(require 'km-emacs-autoloads nil t) +(load "km-emacs-autoloads" t) (setq user-full-name "Kyle Meyer") (setq user-mail-address "kyle@kyleam.com") |