mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
Don't delete autoloads file
Turns out to be more error prone. Better to just ignore the existing one when force-initializing Doom.
This commit is contained in:
@ -276,15 +276,10 @@ to least)."
|
||||
(when (or force-p (not doom-init-p))
|
||||
;; Set this to prevent infinite recursive calls to `doom-initialize'
|
||||
(setq doom-init-p t)
|
||||
;; Delete autoloads file so we can regenerate them later.
|
||||
(when force-p
|
||||
(mapc #'doom-delete-autoloads-file
|
||||
(list doom-autoload-file
|
||||
doom-package-autoload-file)))
|
||||
;; `doom-autoload-file' tells Emacs where to load all its autoloaded
|
||||
;; functions from. This includes everything in core/autoload/*.el and all
|
||||
;; the autoload files in your enabled modules.
|
||||
(unless (doom-initialize-autoloads doom-autoload-file)
|
||||
(unless (or force-p (doom-initialize-autoloads doom-autoload-file))
|
||||
(doom-ensure-core-directories)
|
||||
(doom-ensure-same-emacs-version-p)
|
||||
(doom-ensure-packages-initialized force-p)
|
||||
|
Reference in New Issue
Block a user