Force autoloads to use absolute paths

Autoload paths used to be relative to arbitrary roots (usually
doom-modules-dir). This commit changes doom//reload-autoloads to iterate
over autoloads in doom-autoloads-file and replace their file paths with
an absolute one.

Theoretically this should make Emacs feel marginally faster, but we
*probably* get more of a benefit from a shorter load-path (because we no
longer need doom-modules-dirs, doom-core-dir or doom-psuedo-module-paths
in the load-path).

This is highly experimental however!
This commit is contained in:
Henrik Lissner 2018-02-19 01:21:47 -05:00
parent 1a20c49ef3
commit a967aa051a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 29 additions and 15 deletions

View file

@ -12,7 +12,6 @@ Doom Emacs.")
;; `doom-initialize-packages' will treat `+private-config-path' as the root of
;; this module.
(add-to-list 'doom-psuedo-module-dirs +private-config-path)
(add-to-list 'load-path +private-config-path)
;;
(load (expand-file-name "init.el" +private-config-path)