mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-16 15:56:52 -05:00
cc (irony-mode): more selective init depending on sub cc mode
This commit is contained in:
@@ -80,11 +80,12 @@
|
||||
(define-company-backend! c++-mode (irony))
|
||||
(define-company-backend! objc-mode (irony))
|
||||
|
||||
(add-hook! (c-mode c++-mode objc-mode)
|
||||
(flycheck-mode +1)
|
||||
(irony-mode +1)
|
||||
(eldoc-mode +1)
|
||||
(irony-eldoc +1))))
|
||||
(add-hook! c-mode-common-hook
|
||||
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
||||
(flycheck-mode +1)
|
||||
(irony-mode +1)
|
||||
(eldoc-mode +1)
|
||||
(irony-eldoc +1)))))
|
||||
|
||||
(provide 'module-cc)
|
||||
;;; module-cc.el ends here
|
||||
|
Reference in New Issue
Block a user