From 59253186a5054552653f8d83a04753fff862753f Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 8 Oct 2023 11:52:52 +0300 Subject: emacs:(devltools) Update keybindings - Add consult-project-buffer in project-prefix-map --- .emacs.d/modules/thanos-devtools.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to '.emacs.d/modules') diff --git a/.emacs.d/modules/thanos-devtools.el b/.emacs.d/modules/thanos-devtools.el index 136404e..a46d81f 100644 --- a/.emacs.d/modules/thanos-devtools.el +++ b/.emacs.d/modules/thanos-devtools.el @@ -59,22 +59,21 @@ (setf indent-tabs-mode nil) -;; Register +;; Register & Consult (define-key global-map (kbd "C-x r d") 'bookmark-delete) (define-key global-map (kbd "C-x r C-r") 'bookmark-rename) (define-key global-map (kbd "C-x r .") 'consult-register) (define-key global-map (kbd "C-x r s") 'consult-register-store) (define-key global-map (kbd "C-c f") 'consult-grep) +(define-key project-prefix-map (kbd "b") 'consult-project-buffer) (define-key global-map (kbd "M-y") 'consult-yank-from-kill-ring) +(setf xref-show-xrefs-function #'consult-xref + xref-show-definitions-function #'consult-xref) (setf register-preview-delay 0.5 register-preview-function #'consult-register-format) -;; xref -(setf xref-show-xrefs-function #'consult-xref - xref-show-definitions-function #'consult-xref) - (defun insert-brackets (&optional arg) "Insert brackets." (interactive "P") -- cgit v1.2.3