diff options
| author | condy <condy0919@gmail.com> | 2020-08-18 00:31:26 +0800 |
|---|---|---|
| committer | Pierre Neidhardt <mail@ambrevar.xyz> | 2020-08-23 09:56:03 +0000 |
| commit | c3f684e5f198cc54f7f9c063c11ef0e3833c879b (patch) | |
| tree | e6b83f3211721d08c16392b7845171d46fe56297 | |
| parent | e34add195fb0bffb4aff9292747b4d15a5a1b1ab (diff) | |
xref: bind gr to xref-revert-buffer (introduced in Emacs 27.1)
| -rw-r--r-- | modes/xref/evil-collection-xref.el | 6 |
1 files changed, 5 insertions, 1 deletions
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-<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 |
