diff options
author | Thanos Apollo <[email protected]> | 2023-10-08 11:52:52 +0300 |
---|---|---|
committer | Thanos Apollo <[email protected]> | 2023-10-08 11:52:52 +0300 |
commit | 59253186a5054552653f8d83a04753fff862753f (patch) | |
tree | e7cf26bcd08ea95ecc499619003f13e60c1ef36b /.emacs.d | |
parent | 8908e14d101d113179208447858b16d652d37ef5 (diff) |
emacs:(devltools) Update keybindings
- Add consult-project-buffer in project-prefix-map
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/modules/thanos-devtools.el | 9 |
1 files changed, 4 insertions, 5 deletions
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") |