Skip to content

Instantly share code, notes, and snippets.

@jstaursky
Created September 22, 2021 02:44
Show Gist options
  • Save jstaursky/2ecb7245028c128256f03cca691780b9 to your computer and use it in GitHub Desktop.
Save jstaursky/2ecb7245028c128256f03cca691780b9 to your computer and use it in GitHub Desktop.
(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