Restrict irony-mode to cc-modes
Irony-mode gets triggered for other modes derived from cc-mode, like php or java. Might fix #81.
This commit is contained in:
parent
9f698e9f2d
commit
3e53c3ba76
1 changed files with 4 additions and 1 deletions
|
@ -112,7 +112,10 @@
|
||||||
|
|
||||||
(def-package! irony
|
(def-package! irony
|
||||||
:after cc-mode
|
:after cc-mode
|
||||||
:init (add-hook 'c-mode-common-hook #'irony-mode)
|
:init
|
||||||
|
(add-hook! 'c-mode-common-hook
|
||||||
|
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
||||||
|
(irony-mode +1)))
|
||||||
:config
|
:config
|
||||||
(setq irony-server-install-prefix (concat doom-etc-dir "irony-server/"))
|
(setq irony-server-install-prefix (concat doom-etc-dir "irony-server/"))
|
||||||
(add-hook! 'irony-mode-hook #'(irony-eldoc flycheck-mode))
|
(add-hook! 'irony-mode-hook #'(irony-eldoc flycheck-mode))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue