Use xref for dumb-jump

This seems to be the recommended way to run dumb-jump now.
This commit is contained in:
Daniel Borchmann 2020-11-14 18:51:49 +01:00
parent 330a52a40f
commit fe5c7c2bd2
Signed by: exot
GPG Key ID: 1C7071A75BB72D64

13
init.el
View File

@ -232,8 +232,6 @@
(bind-key "M-=" #'count-words)
(bind-key "M-SPC" #'cycle-spacing)
(bind-key "M-Z" #'zap-to-char)
(bind-key "M-g j b" #'dumb-jump-back)
(bind-key "M-g j g" #'dumb-jump-go)
(bind-key "M-i" #'swiper-from-isearch isearch-mode-map)
(bind-key "M-j" #'(lambda () (interactive) (join-line -1)))
(bind-key "M-z" #'zap-up-to-char)
@ -2256,13 +2254,10 @@ With given ARG, display files in `db/important-document-path."
bm-wrap-search t))
(use-package dumb-jump
:commands (dumb-jump-go-other-window
dumb-jump-go
dumb-jump-back
dumb-jump-quick-look
dumb-jump-go-prefer-external
dumb-jump-go-prefer-external-other-window)
:init (setq dumb-jump-selector 'helm))
:commands (dumb-jump-xref-activate)
:init (progn
(setq dumb-jump-selector 'helm)
(add-hook 'xref-backend-functions #'dumb-jump-xref-activate)))
(use-package helm-pages
:ensure t