Refactor core.el

+ Load Doom core in doom! macro
+ Move automatic minor modes to core-editor
+ Move doom*set-indirect-buffer-filename to core-editor
This commit is contained in:
Henrik Lissner 2017-07-12 23:56:19 +02:00
parent fa981ffd3c
commit f93fb61f33
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 60 additions and 65 deletions

View file

@ -26,9 +26,9 @@ If neither is available, run all tests in all enabled modules."
(condition-case-unless-debug ex
(let (targets)
;; ensure DOOM is initialized
(unload-feature 'core t)
(let (noninteractive)
(load (expand-file-name "core/core.el" user-emacs-directory) nil t))
(load (expand-file-name "init.el" user-emacs-directory) nil t))
(remove-hook 'doom-init-hook #'doom--display-benchmark)
;; collect targets
(cond ((and command-line-args-left
(equal (car command-line-args-left) "--"))