Adjust project.el shortcuts
This commit is contained in:
1 parent
1e497a9bca
commit
53e9b35347
1 file changed
+11
-4
+11
-4
@@ -332,11 +332,12 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
|||||||
;; Replace bindings. Lazily loaded due by `use-package'.
|
;; Replace bindings. Lazily loaded due by `use-package'.
|
||||||
:bind (("C-x b" . consult-buffer)
|
:bind (("C-x b" . consult-buffer)
|
||||||
("C-x C-b" . consult-buffer)
|
("C-x C-b" . consult-buffer)
|
||||||
("C-x p g" . consult-ripgrep)
|
|
||||||
("C-x p b" . consult-project-buffer)
|
|
||||||
("C-x p F" . consult-fd)
|
|
||||||
("M-i" . consult-imenu)
|
("M-i" . consult-imenu)
|
||||||
("M-y" . consult-yank-from-kill-ring))
|
("M-y" . consult-yank-from-kill-ring)
|
||||||
|
:map project-prefix-map
|
||||||
|
("g" . consult-ripgrep)
|
||||||
|
("b" . consult-project-buffer)
|
||||||
|
("F" . consult-fd))
|
||||||
|
|
||||||
;; Enable automatic preview at point in the *Completions* buffer. This is
|
;; Enable automatic preview at point in the *Completions* buffer. This is
|
||||||
;; relevant when you use the default completion UI.
|
;; relevant when you use the default completion UI.
|
||||||
@@ -649,6 +650,12 @@ EMACS-ALTERNATIVE is the Emacs equivalent (e.g., 'C-s')."
|
|||||||
|
|
||||||
;;;; Project
|
;;;; Project
|
||||||
(use-package project
|
(use-package project
|
||||||
|
:custom
|
||||||
|
(project-switch-commands
|
||||||
|
'((project-find-file "Find file")
|
||||||
|
(consult-ripgrep "Ripgrep")
|
||||||
|
(project-eshell "Eshell")
|
||||||
|
(project-any-command "Other")))
|
||||||
:config
|
:config
|
||||||
;; Make project.el recognize directories with a .project file as project roots
|
;; Make project.el recognize directories with a .project file as project roots
|
||||||
(add-to-list 'project-vc-extra-root-markers ".project"))
|
(add-to-list 'project-vc-extra-root-markers ".project"))
|
||||||
|
|||||||
Reference in new issue
Block a user