Remove wildcard support from doom! macro

"Explicit is better than implicit."
This commit is contained in:
Henrik Lissner 2017-07-29 00:14:44 +02:00
parent 0b7b8800a2
commit ac05f9a763

View file

@ -234,13 +234,6 @@ This aggressively reloads core autoload files."
(setq mode m))
((not mode)
(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)
(doom-module-enable mode (car m) (cdr m)))
(t