From c3f684e5f198cc54f7f9c063c11ef0e3833c879b Mon Sep 17 00:00:00 2001 From: condy Date: Tue, 18 Aug 2020 00:31:26 +0800 Subject: [PATCH] xref: bind gr to xref-revert-buffer (introduced in Emacs 27.1) --- modes/xref/evil-collection-xref.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/modes/xref/evil-collection-xref.el b/modes/xref/evil-collection-xref.el index f704759..d101a14 100644 --- a/modes/xref/evil-collection-xref.el +++ b/modes/xref/evil-collection-xref.el @@ -52,7 +52,11 @@ (kbd "RET") 'xref-goto-xref (kbd "S-") 'xref-show-location-at-point "o" 'xref-show-location-at-point - "go" 'xref-show-location-at-point)) + "go" 'xref-show-location-at-point) + + (when (>= emacs-major-version 27) + (evil-collection-define-key 'normal 'xref--xref-buffer-mode-map + "gr" 'xref-revert-buffer))) (provide 'evil-collection-xref) ;;; evil-collection-xref.el ends here