From bc64641e87288973c51f63173dcc01c506626f15 Mon Sep 17 00:00:00 2001 From: Michael Hauser-Raspe Date: Mon, 27 Apr 2015 13:56:33 +0100 Subject: [PATCH] Add helm-gtags-dwim-other-window on `SPC m g G` --- contrib/gtags/funcs.el | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/contrib/gtags/funcs.el b/contrib/gtags/funcs.el index 749cb90a2..5cca204c3 100644 --- a/contrib/gtags/funcs.el +++ b/contrib/gtags/funcs.el @@ -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