Browse Source

Add irony-install-server check

master
Riyyi 4 years ago
parent
commit
6631b2c8b4
  1. 8
      .emacs.d/config.org

8
.emacs.d/config.org

@ -478,17 +478,19 @@ Irony requires M-x =irony-install-server=.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package irony (use-package irony
:defer t
:hook :hook
((c-mode ((c-mode
c++-mode) c++-mode)
. irony-mode) . irony-mode)
(irony-mode . irony-cdb-autosetup-compile-options) (irony-mode . irony-cdb-autosetup-compile-options)
:init (setq irony-user-dir (concat dot-cache-dir "/irony/")) :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 (use-package company-irony
:after company irony :after (company irony)
:config (push 'company-irony company-backends)) :config (push 'company-irony company-backends))
(use-package company-c-headers (use-package company-c-headers

Loading…
Cancel
Save