core/config-layer: Conditionally use ivy in create-layer

This commit is contained in:
justbur 2016-01-07 12:21:25 -05:00 committed by syl20bnr
parent bf40dc3b70
commit 900ae8a06d
1 changed files with 6 additions and 2 deletions

View File

@ -264,8 +264,12 @@ layer directory."
(candidates . ,(append current-layer-paths
(list other-choice)))
(action . (lambda (c) c))))
(layer-path-sel (helm :sources helm-lp-source
:prompt "Configuration layer path: "))
(layer-path-sel (if (configuration-layer/layer-usedp 'spacemacs-ivy)
(ivy-read "Configuration layer path: "
(append current-layer-paths
(list other-choice)))
(helm :sources helm-lp-source
:prompt "Configuration layer path: ")))
(layer-path (cond
((string-equal layer-path-sel other-choice)
(read-directory-name (concat "Other configuration "