diff options
Diffstat (limited to '.emacs.d/modules')
-rw-r--r-- | .emacs.d/modules/thanos-devtools.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/.emacs.d/modules/thanos-devtools.el b/.emacs.d/modules/thanos-devtools.el index 111e8c7..b24e92c 100644 --- a/.emacs.d/modules/thanos-devtools.el +++ b/.emacs.d/modules/thanos-devtools.el @@ -62,6 +62,18 @@ (define-key global-map (kbd "C-x r .") 'consult-register) (define-key corfu-map (kbd "RET") nil) ;; Leave my enter alone +(define-prefix-command 'thanos/consult-register) +(define-key global-map (kbd "C-c r") 'thanos/consult-register) +(define-key thanos/consult-register (kbd ".") 'consult-register) +(define-key thanos/consult-register (kbd "s") 'consult-register-store) + +(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") |