aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-20 23:19:59 +0800
committerGuangxiong Lin <[email protected]>2022-03-20 23:19:59 +0800
commitce2ea7f09d790e69dfb02dbb132386bba7bd2d0a (patch)
treedab4a6f5b984700db56524b1ab5a71a998e30106 /.emacs.d/lisp
parent8cf82000d63fba3a3d6a01b70101b864a60e3414 (diff)
downloaddotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.tar.gz
dotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.tar.bz2
dotfiles-ce2ea7f09d790e69dfb02dbb132386bba7bd2d0a.zip
Use projectile as root function (emacs)
Diffstat (limited to '.emacs.d/lisp')
-rw-r--r--.emacs.d/lisp/init-minibuffer.el3
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