aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-03-22 10:10:58 +0800
committerGuangxiong Lin <[email protected]>2022-03-22 10:10:58 +0800
commitbfecd59f6ca3a1eb7385c056d2608d4ca7c5f8dc (patch)
tree547b8f47fa74e3f56c1502860bd9801747853162
parente897ff86b4f055be4d23fd4b3fed0eda305dff86 (diff)
downloaddotfiles-bfecd59f6ca3a1eb7385c056d2608d4ca7c5f8dc.tar.gz
dotfiles-bfecd59f6ca3a1eb7385c056d2608d4ca7c5f8dc.tar.bz2
dotfiles-bfecd59f6ca3a1eb7385c056d2608d4ca7c5f8dc.zip
More keymap in evil mode (emacs)
-rw-r--r--.emacs.d/lisp/init-evil.el6
1 files changed, 5 insertions, 1 deletions
diff --git a/.emacs.d/lisp/init-evil.el b/.emacs.d/lisp/init-evil.el
index 03849ba..1a2b91c 100644
--- a/.emacs.d/lisp/init-evil.el
+++ b/.emacs.d/lisp/init-evil.el
@@ -16,7 +16,11 @@
(kbd "C-【") 'evil-normal-state)
(evil-define-key 'normal 'global
(kbd "gj") 'evil-next-visual-line
- (kbd "gk") 'evil-previous-visual-line)
+ (kbd "gk") 'evil-previous-visual-line
+
+ (kbd "gd") 'xref-find-definitions
+ (kbd "gr") 'xref-find-references
+ (kbd "C-t") 'xref-pop-marker-stack)
(evil-define-key 'normal text-mode-map
(kbd "j") 'evil-next-visual-line
(kbd "k") 'evil-previous-visual-line