Add missing contrib/gtags/funcs.el file
This commit is contained in:
parent
44329f8f90
commit
f19d8de1d0
31
contrib/gtags/funcs.el
Normal file
31
contrib/gtags/funcs.el
Normal file
|
@ -0,0 +1,31 @@
|
|||
;;; funcs.el --- gtags functions File
|
||||
;;
|
||||
;; Copyright (c) 2012-2014 Sylvain Benner
|
||||
;; Copyright (c) 2014-2015 Sylvain Benner & Contributors
|
||||
;;
|
||||
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
|
||||
;; URL: https://github.com/syl20bnr/spacemacs
|
||||
;;
|
||||
;; This file is not part of GNU Emacs.
|
||||
;;
|
||||
;;; License: GPLv3
|
||||
|
||||
(defun spacemacs/helm-gtags-define-keys-for-mode (mode)
|
||||
"Define key bindings for the specific MODE."
|
||||
(when (fboundp mode)
|
||||
(let ((hook (intern (concat (symbol-name mode) "-hook"))))
|
||||
(add-hook hook 'helm-gtags-mode))
|
||||
(evil-leader/set-key-for-mode mode
|
||||
"mgc" 'helm-gtags-create-tags
|
||||
"mgd" 'helm-gtags-find-tag
|
||||
"mgf" 'helm-gtags-select-path
|
||||
"mgg" 'helm-gtags-dwim
|
||||
"mgi" 'helm-gtags-tags-in-this-function
|
||||
"mgl" 'helm-gtags-parse-file
|
||||
"mgn" 'helm-gtags-next-history
|
||||
"mgp" 'helm-gtags-previous-history
|
||||
"mgr" 'helm-gtags-find-rtag
|
||||
"mgR" 'helm-gtags-resume
|
||||
"mgs" 'helm-gtags-select
|
||||
"mgS" 'helm-gtags-show-stack
|
||||
"mgu" 'helm-gtags-update-tags)))
|
Loading…
Reference in a new issue