Move c-mode hook calls to one single lambda
This commit is contained in:
parent
72c920b008
commit
117b032ebc
@ -1 +1 @@
|
|||||||
Subproject commit d990787835d901cf6abb3090d5f1bf987e26ecb4
|
Subproject commit 0ddafcfb4a683097a7cc4db9830b25bb16d8bd99
|
2
ggtags
2
ggtags
@ -1 +1 @@
|
|||||||
Subproject commit 24fdf7ecd721f117976f2310a2db02dea4e33d85
|
Subproject commit c97360a96702a497d46037180c7dd25656686a1e
|
8
init.el
8
init.el
@ -69,11 +69,15 @@
|
|||||||
(load (concat user-emacs-directory "transpose-windows.el"))
|
(load (concat user-emacs-directory "transpose-windows.el"))
|
||||||
(load (concat user-emacs-directory "clearcase.el"))
|
(load (concat user-emacs-directory "clearcase.el"))
|
||||||
|
|
||||||
(add-hook 'c-mode-hook 'helm-gtags-mode)
|
(add-hook 'c-mode-hook
|
||||||
(add-hook 'c-mode-hook 'which-func-mode)
|
(lambda ()
|
||||||
|
(helm-gtags-mode)
|
||||||
|
(which-func-mode)
|
||||||
|
(flyspell-prog-mode)))
|
||||||
(add-hook 'c-mode-common-hook
|
(add-hook 'c-mode-common-hook
|
||||||
(lambda()
|
(lambda()
|
||||||
(local-set-key (kbd "C-c o") 'ff-find-other-file)))
|
(local-set-key (kbd "C-c o") 'ff-find-other-file)))
|
||||||
|
|
||||||
(eval-after-load "helm-gtags"
|
(eval-after-load "helm-gtags"
|
||||||
'(progn
|
'(progn
|
||||||
(define-key helm-gtags-mode-map (kbd "M-t") 'helm-gtags-find-tag)
|
(define-key helm-gtags-mode-map (kbd "M-t") 'helm-gtags-find-tag)
|
||||||
|
Loading…
Reference in New Issue
Block a user