Skip to content

Commit

Permalink
Fix create-layer function for compleseus
Browse files Browse the repository at this point in the history
When using ivy, the new completing-read call is equivalent to the previous ivy-read call.
  • Loading branch information
fnussbaum authored and smile13241324 committed Apr 3, 2024
1 parent 73e4ede commit a58a7d7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions core/core-configuration-layer.el
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,12 @@ layer directory."
(candidates . ,(append current-layer-paths
(list other-choice)))
(action . (lambda (c) c))))
(layer-path-sel (if (configuration-layer/layer-used-p 'ivy)
(ivy-read "Configuration layer path: "
(append current-layer-paths
(list other-choice)))
(helm :sources helm-lp-source
:prompt "Configuration layer path: ")))
(layer-path-sel (if (configuration-layer/layer-used-p 'helm)
(helm :sources helm-lp-source
:prompt "Configuration layer path: ")
(completing-read "Configuration layer path: "
(append current-layer-paths
(list other-choice)))))
(layer-path (cond
((string-equal layer-path-sel other-choice)
(read-directory-name (concat "Other configuration "
Expand Down

0 comments on commit a58a7d7

Please sign in to comment.