From 774a3d896f8b77326977eabbad6b96163e8ac82f Mon Sep 17 00:00:00 2001 From: Peng Li Date: Sat, 27 Aug 2016 19:57:30 +0800 Subject: [PATCH] emacs - company add c++ headers file completion --- emacs.d/config.org | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index d1b099a..d7bf9c7 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -1808,6 +1808,7 @@ irony-mode-hook, copied from [[https://github.com/Sarcasm/irony-mode][irony-mode 'irony-completion-at-point-async) (define-key irony-mode-map [remap complete-symbol] 'irony-completion-at-point-async)) + (add-hook 'irony-mode-hook 'my-irony-mode-hook) (add-hook 'irony-mode-hook 'irony-cdb-autosetup-compile-options) #+END_SRC @@ -1821,10 +1822,13 @@ irony-company :ensure t) (use-package company-c-headers - :ensure t) + :ensure t + :init + (add-to-list 'company-c-headers-path-system "/usr/include/c++/4.2.1/")) (with-eval-after-load 'company - (add-to-list 'company-backends '(company-irony company-c-headers))) + (add-to-list 'company-backends 'company-irony) + (add-to-list 'company-backends 'company-c-headers)) (with-eval-after-load 'flycheck -- 2.11.0