Rethink what Doom loads at startup and manually
Better to simply load what we need, when we need it, rather than set up autoloads for every litte thing.
This commit is contained in:
parent
0042a56d02
commit
31a4244686
7 changed files with 15 additions and 10 deletions
|
@ -11,6 +11,7 @@ ignore the cache."
|
|||
(gethash project-root +javascript-npm-conf))
|
||||
(let ((package-file (expand-file-name "package.json" project-root)))
|
||||
(when-let* ((json (and (file-exists-p package-file)
|
||||
(require 'json)
|
||||
(json-read-file package-file))))
|
||||
(puthash project-root json +javascript-npm-conf))))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue