Move c-mode hook calls to one single lambda

This commit is contained in:
Gergely Polonkai 2014-11-16 16:41:42 +01:00
parent 72c920b008
commit 117b032ebc
3 changed files with 8 additions and 4 deletions

@ -1 +1 @@
Subproject commit d990787835d901cf6abb3090d5f1bf987e26ecb4
Subproject commit 0ddafcfb4a683097a7cc4db9830b25bb16d8bd99

2
ggtags

@ -1 +1 @@
Subproject commit 24fdf7ecd721f117976f2310a2db02dea4e33d85
Subproject commit c97360a96702a497d46037180c7dd25656686a1e

View File

@ -69,11 +69,15 @@
(load (concat user-emacs-directory "transpose-windows.el"))
(load (concat user-emacs-directory "clearcase.el"))
(add-hook 'c-mode-hook 'helm-gtags-mode)
(add-hook 'c-mode-hook 'which-func-mode)
(add-hook 'c-mode-hook
(lambda ()
(helm-gtags-mode)
(which-func-mode)
(flyspell-prog-mode)))
(add-hook 'c-mode-common-hook
(lambda()
(local-set-key (kbd "C-c o") 'ff-find-other-file)))
(eval-after-load "helm-gtags"
'(progn
(define-key helm-gtags-mode-map (kbd "M-t") 'helm-gtags-find-tag)