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:
Henrik Lissner
2018-01-06 17:02:57 -05:00
parent 0042a56d02
commit 31a4244686
7 changed files with 15 additions and 10 deletions

View File

@ -10,5 +10,6 @@ ignore the cache."
(or (and (not refresh-p) (gethash project-root +php-composer-conf))
(let ((package-file (expand-file-name "composer.json" project-root)))
(when-let* ((data (and (file-exists-p package-file)
(require 'json)
(json-read-file package-file))))
(puthash project-root data +php-composer-conf))))))