From 6631b2c8b49751de1a954305df32885cd908e39d Mon Sep 17 00:00:00 2001 From: Riyyi Date: Fri, 7 Aug 2020 23:20:41 +0200 Subject: [PATCH] Add irony-install-server check --- .emacs.d/config.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.emacs.d/config.org b/.emacs.d/config.org index e964f0a..c42cc4f 100644 --- a/.emacs.d/config.org +++ b/.emacs.d/config.org @@ -478,17 +478,19 @@ Irony requires M-x =irony-install-server=. #+BEGIN_SRC emacs-lisp (use-package irony - :defer t :hook ((c-mode c++-mode) . irony-mode) (irony-mode . irony-cdb-autosetup-compile-options) :init (setq irony-user-dir (concat dot-cache-dir "/irony/")) - :config (push 'glsl-mode irony-supported-major-modes)) + :config + (unless (file-exists-p (concat irony-user-dir "bin/irony-server")) + (call-interactively 'irony-install-server)) + (push 'glsl-mode irony-supported-major-modes)) (use-package company-irony - :after company irony + :after (company irony) :config (push 'company-irony company-backends)) (use-package company-c-headers