mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
fix(lib): doom/help-modules: omit nil in module list
Some psuedo module categories (like :core and :user) don't have a module component. Rather than display them as ':core nil' or ':user nil' in module listings (like doom/help-modules), omit the nil entirely.
This commit is contained in:
@ -345,7 +345,7 @@ without needing to check if they are available."
|
||||
(cl-loop for (cat . mod) in (doom-module-list 'all)
|
||||
for readme-path = (or (doom-module-locate-path cat mod "README.org")
|
||||
(doom-module-locate-path cat mod))
|
||||
for format = (format "%s %s" cat mod)
|
||||
for format = (if mod (format "%s %s" cat mod) (format "%s" cat))
|
||||
if (doom-module-p cat mod)
|
||||
collect (list format readme-path)
|
||||
else if (and cat mod)
|
||||
|
Reference in New Issue
Block a user