fix(lib): incorrect &user markers in doom-info
M-x doom/info marks modules that live in $DOOMDIR with &user, but what if the user has moved their ~/.emacs.d into $DOOMDIR? As this seems to happen often with Chemacs users, I've made this check a little more procise.
This commit is contained in:
parent
00b7e390d3
commit
39886536c3
1 changed files with 9 additions and 7 deletions
|
@ -182,9 +182,11 @@ ready to be pasted in a bug report on github."
|
||||||
collect
|
collect
|
||||||
(let* ((flags (doom-module-get cat (cdr key) :flags))
|
(let* ((flags (doom-module-get cat (cdr key) :flags))
|
||||||
(path (doom-module-get cat (cdr key) :path))
|
(path (doom-module-get cat (cdr key) :path))
|
||||||
(module (append (cond ((null path)
|
(module
|
||||||
|
(append
|
||||||
|
(cond ((null path)
|
||||||
(list '&nopath))
|
(list '&nopath))
|
||||||
((file-in-directory-p path doom-private-dir)
|
((not (file-in-directory-p path doom-modules-dir))
|
||||||
(list '&user)))
|
(list '&user)))
|
||||||
(if flags
|
(if flags
|
||||||
`(,(cdr key) ,@flags)
|
`(,(cdr key) ,@flags)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue