xref: bind gr to xref-revert-buffer (introduced in Emacs 27.1)

This commit is contained in:
condy 2020-08-18 00:31:26 +08:00 committed by Pierre Neidhardt
parent e34add195f
commit c3f684e5f1
1 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,11 @@
(kbd "RET") 'xref-goto-xref
(kbd "S-<return>") '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