From 2875ed4b0c273e9a418244246be004916b9d773f Mon Sep 17 00:00:00 2001 From: syl20bnr Date: Sun, 15 Jan 2017 22:09:34 -0500 Subject: [PATCH] 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. --- core/core-configuration-layer.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/core/core-configuration-layer.el b/core/core-configuration-layer.el index e2c1d20ff..a53c04f11 100644 --- a/core/core-configuration-layer.el +++ b/core/core-configuration-layer.el @@ -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)))))))))))