diff options
author | Guangxiong Lin <[email protected]> | 2022-03-20 23:19:59 +0800 |
---|---|---|
committer | Guangxiong Lin <[email protected]> | 2022-03-20 23:19:59 +0800 |
commit | ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a (patch) | |
tree | dab4a6f5b984700db56524b1ab5a71a998e30106 | |
parent | 8cf82000d63fba3a3d6a01b70101b864a60e3414 (diff) | |
download | dotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.tar.gz dotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.tar.bz2 dotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.zip |
Use projectile as root function (emacs)
-rw-r--r-- | .emacs.d/lisp/init-minibuffer.el | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-minibuffer.el b/.emacs.d/lisp/init-minibuffer.el index 6fa5061..777ea7e 100644 --- a/.emacs.d/lisp/init-minibuffer.el +++ b/.emacs.d/lisp/init-minibuffer.el @@ -19,6 +19,9 @@ (lambda () (interactive) (vertico-previous (/ vertico-count 2))))) (when (gx/maybe-require-package 'consult) + (when (gx/maybe-require-package 'projectile) + (autoload 'projectile-project-root "projectile") + (setq consult-project-function (lambda (_) (projectile-project-root)))) (with-eval-after-load 'evil (evil-define-key 'normal 'global (kbd "<leader>fb") 'consult-buffer |