home

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit c1bbd045c95bdc76ad5af55e57cfbb55d2fe8abf
parent 554a5a3c2c12fb0fcbe5f6b9153b9a36e2ffa2aa
Author: Vincent Demeester <vincent@sbr.pm>
Date:   Sat,  6 Jun 2020 16:18:08 +0200

tools/emacs: enable dumb-jump

Signed-off-by: Vincent Demeester <vincent@sbr.pm>

Diffstat:
Mtools/emacs/config/config-navigating.el | 15+++++++++++++++
Musers/vincent/dev/emacs.nix | 1+
2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/tools/emacs/config/config-navigating.el b/tools/emacs/config/config-navigating.el @@ -31,5 +31,20 @@ :config (beginend-global-mode 1)) +(use-package dumb-jump + :bind (("M-g q" . dumb-jump-quick-look) ;; Show me in a tooltip. + ("M-g o" . dumb-jump-go-other-window) + ("M-g j" . dumb-jump-go) + ("M-g ." . dumb-jump-go) + ("M-g b" . dumb-jump-back) + ("M-g p" . dumb-jump-go-prompt) + ("M-g x" . dumb-jump-go-prefer-external) + ("M-g z" . dumb-jump-go-prefer-external-other-window) + ("M-g a" . xref-find-apropos)) ;; aka C-M-. + :config + ;; If source file is visible, just shift focus to it. + (setq-default dumb-jump-use-visible-window t + dumb-jump-prefer-searcher 'rg)) + (provide 'config-navigating) ;;; config-navigating.el ends here diff --git a/users/vincent/dev/emacs.nix b/users/vincent/dev/emacs.nix @@ -45,6 +45,7 @@ in dired-narrow dired-rsync pkgs.dired-plus + dumb-jump direnv dockerfile-mode easy-kill