Move c-mode hook calls to one single lambda
This commit is contained in:
Submodule emacs-async updated: d990787835...0ddafcfb4a
2
ggtags
2
ggtags
Submodule ggtags updated: 24fdf7ecd7...c97360a967
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)
|
||||||
|
Reference in New Issue
Block a user