mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
c/c++: fix irony/flycheck init hook
This commit is contained in:
@ -80,7 +80,9 @@
|
|||||||
(define-company-backend! c++-mode (irony))
|
(define-company-backend! c++-mode (irony))
|
||||||
(define-company-backend! objc-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))
|
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
||||||
(flycheck-mode +1)
|
(flycheck-mode +1)
|
||||||
(irony-mode +1)
|
(irony-mode +1)
|
||||||
|
Reference in New Issue
Block a user