projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
56d07be
)
Emacs - remove google-c-style for c file and add /usr/local/include for company compl...
author
Peng Li
<seudut@gmail.com>
Wed, 6 Sep 2017 00:27:22 +0000
(08:27 +0800)
committer
Peng Li
<seudut@gmail.com>
Wed, 6 Sep 2017 00:27:22 +0000
(08:27 +0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
d37dc9c
..
547ace2
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-2278,7
+2278,8
@@
irony-company
(use-package company-c-headers
:ensure t
:config
(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)
;; (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
*** 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
#+END_SRC
*** Compile and Run the C file