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! c++-mode (irony))
|
||||||
(define-company-backend! objc-mode (irony))
|
(define-company-backend! objc-mode (irony))
|
||||||
|
|
||||||
(add-hook! (c-mode c++-mode objc-mode)
|
(add-hook! c-mode-common-hook
|
||||||
(flycheck-mode +1)
|
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
||||||
(irony-mode +1)
|
(flycheck-mode +1)
|
||||||
(eldoc-mode +1)
|
(irony-mode +1)
|
||||||
(irony-eldoc +1))))
|
(eldoc-mode +1)
|
||||||
|
(irony-eldoc +1)))))
|
||||||
|
|
||||||
(provide 'module-cc)
|
(provide 'module-cc)
|
||||||
;;; module-cc.el ends here
|
;;; module-cc.el ends here
|
||||||
|
Reference in New Issue
Block a user