Refactor doom/autoloads init process
This commit is contained in:
parent
cd713291f3
commit
776bc96977
3 changed files with 28 additions and 31 deletions
|
@ -46,8 +46,7 @@ line or use --debug-init to enable this.")
|
|||
|
||||
(defvar doom-autoload-file
|
||||
(concat doom-local-dir "autoloads.el")
|
||||
"Location of the autoloads.el, which is generated by `doom/reload-autoloads'
|
||||
and `doom-initialize-autoloads'.")
|
||||
"Location of the autoloads file generated by `doom/reload-autoloads'.")
|
||||
|
||||
(defgroup doom nil
|
||||
""
|
||||
|
@ -139,7 +138,8 @@ enable multiple minor modes for the same regexp.")
|
|||
;;; Let 'er rip
|
||||
(require 'core-lib)
|
||||
(require 'core-os) ; consistent behavior across Oses
|
||||
(doom-initialize-autoloads)
|
||||
(with-demoted-errors "AUTOLOAD ERROR: %s"
|
||||
(require 'autoloads doom-autoload-file t))
|
||||
|
||||
(unless noninteractive
|
||||
(require 'core-ui) ; draw me like one of your French editors
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue