all repos — nixfiles @ 3936dc527affdf9dfc6a3089f5e8c2dd57385a65

System and user configuration, managed by nix and home-manager

Emacs: Install dumb-jump for simple goto-definition

Alan Pearce
commit

3936dc527affdf9dfc6a3089f5e8c2dd57385a65

parent

05f574baa9e43499a13460bdfbb5140fcf957d6d

1 file changed, 15 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -1748,6 +1748,21 @@ (ggtags-mode 1))
(add-hook 'c-mode-common-hook #'turn-on-ggtags-mode))) #+END_SRC +** dumb-jump + +A "clever" way of implementing go-to-definition across languages: use +a project-wide text search and apply heuristics to the results to +guess a definition. + +#+BEGIN_SRC emacs-lisp +(use-package dumb-jump + :bind (("M-g o" . dumb-jump-go-other-window) + ("M-g j" . dumb-jump-go) + ("M-g x" . dumb-jump-go-prefer-external) + ("M-g z" . dumb-jump-go-prefer-external-other-window)) + :config (setq dumb-jump-selector 'ivy)) +#+END_SRC + ** Lisps *** All