Add and configure the consult-projectile package

This commit is contained in:
Gergely Polonkai 2023-10-20 10:31:52 +02:00
parent 927753fbd5
commit 4d59042b60
No known key found for this signature in database
GPG Key ID: 2D2885533B869ED4

View File

@ -2070,7 +2070,18 @@ It also provides some nice commands to navigate between change sets.
** ~consult-projectile~ ** ~consult-projectile~
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package consult-projectile) (use-package consult-projectile
:demand t
:after (:all projectile consult embark)
:config
(defvar-keymap embark-consult-projectile-project-map
:doc "Keymap to use for the projectile menu"
:parent embark-general-map
"g" #'magit-status)
(add-to-list 'embark-keymap-alist '(consult-projectile-project embark-consult-projectile-project-map))
(autoload 'magit-status "magit")
:bind (:map projectile-command-map
("p" . consult-projectile-switch-project)))
#+end_src #+end_src
* Org mode * Org mode
@ -3134,6 +3145,8 @@ Because thats still my favourite language.
("M-t" . gpolonkai/transpose-map) ("M-t" . gpolonkai/transpose-map)
("C-z" . nil) ("C-z" . nil)
:map mode-specific-map :map mode-specific-map
;; TODO this should be doable from consult-projectiles config
("p p" . consult-projectile-switch-project)
("r" . gpolonkai/round-number-at-point-to-decimals) ("r" . gpolonkai/round-number-at-point-to-decimals)
:map gpolonkai/transpose-map :map gpolonkai/transpose-map
("c" . transpose-chars) ("c" . transpose-chars)