Refactor core initialization process
A vastly simpler bootstrap process. Also load core libs in core-lib (duh)
This commit is contained in:
parent
59f510e85f
commit
fa37d7b05e
3 changed files with 19 additions and 16 deletions
19
core/core.el
19
core/core.el
|
@ -173,14 +173,19 @@ this, you'll get stuttering and random freezes) and resets
|
|||
gc-cons-threshold 16777216
|
||||
gc-cons-percentage 0.15))
|
||||
|
||||
;;
|
||||
(require 'core-packages (concat doom-core-dir "core-packages"))
|
||||
(doom-initialize noninteractive)
|
||||
|
||||
(add-hook! '(emacs-startup-hook doom-reload-hook)
|
||||
#'doom|finalize)
|
||||
(when doom-private-dir
|
||||
(load (concat doom-private-dir "init") t t))
|
||||
;;
|
||||
;; Bootstrap Doom
|
||||
;;
|
||||
|
||||
(add-to-list 'load-path doom-core-dir)
|
||||
|
||||
(require 'core-packages)
|
||||
(require 'core-lib)
|
||||
(require 'core-os)
|
||||
|
||||
(unless noninteractive
|
||||
(doom-initialize))
|
||||
|
||||
(provide 'core)
|
||||
;;; core.el ends here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue