lang/cc: don't complain if irony isn't installed
This commit is contained in:
parent
02a5109c4f
commit
92cf264b1b
1 changed files with 2 additions and 1 deletions
|
@ -134,7 +134,8 @@ compilation database is present in the project.")
|
||||||
(setq irony-server-install-prefix (concat doom-etc-dir "irony-server/"))
|
(setq irony-server-install-prefix (concat doom-etc-dir "irony-server/"))
|
||||||
:init
|
:init
|
||||||
(defun +cc|init-irony-mode ()
|
(defun +cc|init-irony-mode ()
|
||||||
(when (memq major-mode '(c-mode c++-mode objc-mode))
|
(when (and (memq major-mode '(c-mode c++-mode objc-mode))
|
||||||
|
(file-directory-p irony-server-install-prefix))
|
||||||
(irony-mode +1)))
|
(irony-mode +1)))
|
||||||
(add-hook 'c-mode-common-hook #'+cc|init-irony-mode)
|
(add-hook 'c-mode-common-hook #'+cc|init-irony-mode)
|
||||||
:config
|
:config
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue