mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
Remove wildcard support from doom! macro
"Explicit is better than implicit."
This commit is contained in:
@ -234,13 +234,6 @@ This aggressively reloads core autoload files."
|
|||||||
(setq mode m))
|
(setq mode m))
|
||||||
((not mode)
|
((not mode)
|
||||||
(error "No namespace specified on `doom!' for %s" m))
|
(error "No namespace specified on `doom!' for %s" m))
|
||||||
((eq m '*)
|
|
||||||
(doom-initialize-modules
|
|
||||||
(cl-loop with modpath = (expand-file-name (substring (symbol-name mode) 1) doom-modules-dir)
|
|
||||||
for path in (directory-files modpath t "^\\w")
|
|
||||||
if (file-directory-p path)
|
|
||||||
collect (intern (file-name-nondirectory path)) into paths
|
|
||||||
finally return (cons mode paths))))
|
|
||||||
((listp m)
|
((listp m)
|
||||||
(doom-module-enable mode (car m) (cdr m)))
|
(doom-module-enable mode (car m) (cdr m)))
|
||||||
(t
|
(t
|
||||||
|
Reference in New Issue
Block a user