Speedup SPC h SPC for both helm and ivy

The layer files were loaded twice because the global variable controlling
the loading of layer files was not explicity set at the layer discovery phase.
This commit is contained in:
syl20bnr 2017-01-15 22:09:34 -05:00
parent 6b6d365b96
commit 2875ed4b0c
1 changed files with 4 additions and 2 deletions

View File

@ -1124,8 +1124,10 @@ Returns nil if the directory is not a category."
(oset indexed-layer :dir sub))
(spacemacs-buffer/message
"-> Discovered configuration layer: %s" layer-name-str)
(configuration-layer//add-layer
(configuration-layer/make-layer layer-name nil nil sub)))))
(let ((configuration-layer--load-packages-files nil))
(configuration-layer//add-layer
(configuration-layer/make-layer layer-name
nil nil sub))))))
(t
;; layer not found, add it to search path
(setq search-paths (cons sub search-paths)))))))))))