selectrum: remove doom-project-find-file
hack
This solution doesn't rely on condition evaluation order, and doesn't contain `featurep!`'s unnecessarily.
This commit is contained in:
parent
e65dffd790
commit
92586cacd4
2 changed files with 5 additions and 5 deletions
|
@ -128,13 +128,13 @@ If DIR is not a project, it will be indexed (but not cached)."
|
|||
(if (doom-module-p :completion 'ivy)
|
||||
#'counsel-projectile-find-file
|
||||
#'projectile-find-file)))
|
||||
((fboundp 'selectrum-mode) ;HACK see @ymarco's comment on #5013 and TODO.org in the selecturm module.
|
||||
(call-interactively #'find-file))
|
||||
((fboundp 'counsel-file-jump) ; ivy only
|
||||
((and (bound-and-true-p ivy-mode)
|
||||
(fboundp 'counsel-file-jump))
|
||||
(call-interactively #'counsel-file-jump))
|
||||
((project-current nil dir)
|
||||
(project-find-file-in nil nil dir))
|
||||
((fboundp 'helm-find-files)
|
||||
((and (bound-and-true-p helm-mode)
|
||||
(fboundp 'helm-find-files))
|
||||
(call-interactively #'helm-find-files))
|
||||
((call-interactively #'find-file)))))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue