cc (irony-mode): more selective init depending on sub cc mode
This commit is contained in:
parent
7bec1bce96
commit
efd5ff4cb6
1 changed files with 6 additions and 5 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue