Created
September 22, 2021 02:44
-
-
Save jstaursky/2ecb7245028c128256f03cca691780b9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(use-package evil | |
:config | |
(setq evil-jmp-list '( | |
xref-goto-xref xref-quit-and-goto-xref | |
evil-scroll-page-down evil-scroll-page-up | |
jump-to-register)) | |
(dolist (jumper evil-jmp-list) | |
(evil-add-command-properties jumper :jump t)) | |
) | |
(use-package dumb-jump | |
:commands (dumb-jump-go)) | |
;; Preserve jump list in evil | |
(defun evil-set-jump-args (&rest ns) (evil-set-jump)) | |
(advice-add 'dumb-jump-goto-file-line :before #'evil-set-jump-args) | |
(spacemacs/set-leader-keys-for-major-mode 'c++-mode "." 'dumb-jump-go) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment