Move c-mode hook calls to one single lambda

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

2
ggtags

Submodule ggtags updated: 24fdf7ecd7...c97360a967

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)