Add helm-gtags-dwim-other-window on SPC m g G

This commit is contained in:
Michael Hauser-Raspe 2015-04-27 13:56:33 +01:00 committed by syl20bnr
parent 6229927c70
commit bc64641e87

View file

@ -10,6 +10,15 @@
;;
;;; License: GPLv3
(defun helm-gtags-dwim-other-window ()
"helm-gtags-dwim in the other window"
(interactive)
(let ((helm-gtags--use-otherwin t)
(split-height-threshold nil)
(split-width-threshold 140))
(helm-gtags-dwim)))
(defun spacemacs/helm-gtags-define-keys-for-mode (mode)
"Define key bindings for the specific MODE."
(when (fboundp mode)
@ -20,6 +29,7 @@
"mgd" 'helm-gtags-find-tag
"mgf" 'helm-gtags-select-path
"mgg" 'helm-gtags-dwim
"mgG" 'helm-gtags-dwim-other-window
"mgi" 'helm-gtags-tags-in-this-function
"mgl" 'helm-gtags-parse-file
"mgn" 'helm-gtags-next-history