forked from FG42/FG42
dumb-jump ability added
This commit is contained in:
parent
9fe655945a
commit
016d679659
|
@ -11,6 +11,10 @@
|
||||||
(depends-on 'yasnippet)
|
(depends-on 'yasnippet)
|
||||||
(depends-on 'hl-sexp)
|
(depends-on 'hl-sexp)
|
||||||
(depends-on 'smart-mode-line)
|
(depends-on 'smart-mode-line)
|
||||||
|
|
||||||
|
(with-ability dumb-jump
|
||||||
|
(depends-on 'dumb-jump))
|
||||||
|
|
||||||
(with-ability bookmarks
|
(with-ability bookmarks
|
||||||
(depends-on 'bm))
|
(depends-on 'bm))
|
||||||
|
|
||||||
|
|
|
@ -69,6 +69,27 @@
|
||||||
(bm-buffer-save-all)
|
(bm-buffer-save-all)
|
||||||
(bm-repository-save))))
|
(bm-repository-save))))
|
||||||
|
|
||||||
|
(ability dumb-jump ()
|
||||||
|
"Easily jump to defination for most langs using ag"
|
||||||
|
(cheatsheet-add :group '--Development--
|
||||||
|
:key "M-g o"
|
||||||
|
:description "Jump to definition in another window")
|
||||||
|
(cheatsheet-add :group '--Development--
|
||||||
|
:key "M-g j"
|
||||||
|
:description "Jump to definition in current buffer")
|
||||||
|
(cheatsheet-add :group '--Development--
|
||||||
|
:key "M-g x"
|
||||||
|
:description "Jump to definition using an external tool")
|
||||||
|
(cheatsheet-add :group '--Development--
|
||||||
|
:key "M-g z"
|
||||||
|
:description "Jump to definition in another window using an external tool")
|
||||||
|
|
||||||
|
(require 'dumb-jump)
|
||||||
|
(define-key dumb-jump-map (kbd "M-g o") 'dumb-jump-go-other-window)
|
||||||
|
(define-key dumb-jump-map (kbd "M-g j") 'dumb-jump-go)
|
||||||
|
(define-key dumb-jump-map (kbd "M-g x") 'dumb-jump-go-prefer-external)
|
||||||
|
(define-key dumb-jump-map (kbd "M-g z") 'dumb-jump-go-prefer-external-other-window))
|
||||||
|
|
||||||
(ability git ()
|
(ability git ()
|
||||||
"A wonderful git interface for FG42"
|
"A wonderful git interface for FG42"
|
||||||
(cheatsheet-add :group '--Development--
|
(cheatsheet-add :group '--Development--
|
||||||
|
|
Loading…
Reference in New Issue