From 1ec4c99b6956d195de6a45d9b72377d566cc97c6 Mon Sep 17 00:00:00 2001 From: Peng Li Date: Wed, 6 Sep 2017 08:27:22 +0800 Subject: [PATCH] Emacs - remove google-c-style for c file and add /usr/local/include for company completion --- emacs.d/config.org | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/emacs.d/config.org b/emacs.d/config.org index d37dc9c..547ace2 100644 --- a/emacs.d/config.org +++ b/emacs.d/config.org @@ -2278,7 +2278,8 @@ irony-company (use-package company-c-headers :ensure t :config - (add-to-list 'company-c-headers-path-system "/usr/include/c++/4.2.1/")) + (add-to-list 'company-c-headers-path-system "/usr/include/c++/4.2.1/") + (add-to-list 'company-c-headers-path-system "/usr/local/include/")) ;; (with-eval-after-load 'company ;; (add-to-list 'company-backends 'company-irony) @@ -2329,11 +2330,11 @@ irony-company *** google C style #+BEGIN_SRC emacs-lisp :tangle yes :results silent - (use-package google-c-style - :ensure t - :config - (add-hook 'c-mode-hook 'google-set-c-style) - (add-hook 'c++-mode-hook 'google-set-c-style)) + ;; (use-package google-c-style + ;; :ensure t + ;; :config + ;; (add-hook 'c-mode-hook 'google-set-c-style) + ;; (add-hook 'c++-mode-hook 'google-set-c-style)) #+END_SRC *** Compile and Run the C file -- 2.11.0