mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
refactor!: restructure Doom core
BREAKING CHANGE: This restructures Doom's core in an effort to slim it down and partially mirror architectural changes coming in v3. This is part 2 of 3 commits (part 1 being1590434
), done to facilitate a change in part 3 that will introduce a new `doom!` syntax for pulling third-party module libraries from remote sources (similar to `package!` statements). I am backporting this from V3 so I can move our modules out into separate repos sooner than later, so development on modules can continue separately without interfering with v3's roll out. Though this is labeled a breaking change, it shouldn't affect most users except those few tinkering directly with Doom's internals. Ref:15904349cf
This commit is contained in:
@ -233,7 +233,9 @@ Activate this advice with:
|
||||
"Returns diagnostic information about the current Emacs session in markdown,
|
||||
ready to be pasted in a bug report on github."
|
||||
(require 'vc-git)
|
||||
(require 'doom-packages)
|
||||
(doom-require 'doom-lib 'profiles)
|
||||
(doom-require 'doom-lib 'modules)
|
||||
(doom-require 'doom-lib 'packages)
|
||||
(let ((default-directory doom-emacs-dir))
|
||||
(letf! ((defun sh (&rest args) (cdr (apply #'doom-call-process args)))
|
||||
(defun cat (file &optional limit)
|
||||
@ -263,11 +265,7 @@ ready to be pasted in a bug report on github."
|
||||
(format "EMACSDIR=%s" (symlink-path doom-emacs-dir))
|
||||
(format "EMACS=%s" (expand-file-name invocation-name invocation-directory)))))
|
||||
(doom . ,(list doom-version
|
||||
(if doom-profile
|
||||
(format "PROFILE=%s@%s"
|
||||
(car doom-profile)
|
||||
(cdr doom-profile))
|
||||
"PROFILE=_@0")
|
||||
(format "PROFILE=%s" (doom-profile->id (doom-profile-key doom-profile t)))
|
||||
(if (file-exists-p! ".git" doom-emacs-dir)
|
||||
(sh "git" "log" "-1" "--format=%D %h %ci")
|
||||
"[no repo]")
|
||||
|
Reference in New Issue
Block a user