core/config-layer: Conditionally use ivy in create-layer
This commit is contained in:
parent
bf40dc3b70
commit
900ae8a06d
|
@ -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 "
|
||||
|
|
Loading…
Reference in New Issue