mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
perf: add additional startup optimizations
Also switches `expand-file-name` calls with the much faster `file-name-concat` where possible.
This commit is contained in:
@ -2,8 +2,6 @@
|
||||
;;; Commentary:
|
||||
;;; Code:
|
||||
|
||||
(require 'doom-modules)
|
||||
|
||||
|
||||
;;
|
||||
;;; Custom hooks
|
||||
@ -310,8 +308,15 @@ If RETURN-P, return the message as a string instead of displaying it."
|
||||
(autoload 'doom-initialize-packages "doom-packages")
|
||||
(eval-after-load 'package '(require 'doom-packages))
|
||||
(eval-after-load 'straight '(doom-initialize-packages))
|
||||
(require 'doom-modules)
|
||||
|
||||
;; Load all things.
|
||||
;; Undo any problematic startup optimizations; from this point, I make no
|
||||
;; assumptions about what might be loaded in userland.
|
||||
(when (get 'load-suffixes 'initial-value)
|
||||
(setq load-suffixes (get 'load-suffixes 'initial-value)
|
||||
load-file-rep-suffixes (get 'load-file-rep-suffixes 'initial-value)))
|
||||
|
||||
;; Load user config + modules
|
||||
(doom-initialize-modules)
|
||||
|
||||
(provide 'doom-start)
|
||||
|
Reference in New Issue
Block a user