c/c++: fix irony/flycheck init hook
This commit is contained in:
parent
a6fd89aa33
commit
4a7b0fc96c
1 changed files with 3 additions and 1 deletions
|
@ -80,7 +80,9 @@
|
|||
(define-company-backend! c++-mode (irony))
|
||||
(define-company-backend! objc-mode (irony))
|
||||
|
||||
(add-hook! c-mode-common-hook
|
||||
;; This is necessary because c-mode dervied modes like php-mode may wrongfully trigger
|
||||
;; these hooks.
|
||||
(add-hook! (c-mode c++-mode ojbc-mode)
|
||||
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
||||
(flycheck-mode +1)
|
||||
(irony-mode +1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue