cc: only set -std=c++11 in c++-mode
This commit is contained in:
parent
94b63e9e34
commit
0434b79fd3
1 changed files with 4 additions and 2 deletions
|
@ -4,7 +4,7 @@
|
||||||
:commands (c-mode c++-mode objc-mode java-mode)
|
:commands (c-mode c++-mode objc-mode java-mode)
|
||||||
:init
|
:init
|
||||||
(associate! objc-mode :match "\\.mm$")
|
(associate! objc-mode :match "\\.mm$")
|
||||||
(add-hook! 'c++-mode-hook '(highlight-numbers-mode narf|init-c++-C11-highlights))
|
(add-hook! c++-mode '(highlight-numbers-mode narf|init-c++-C11-highlights))
|
||||||
(add-hook 'c-initialization-hook 'narf|init-c/c++-settings)
|
(add-hook 'c-initialization-hook 'narf|init-c/c++-settings)
|
||||||
|
|
||||||
;; C++ header files
|
;; C++ header files
|
||||||
|
@ -44,7 +44,9 @@
|
||||||
:after cc-mode
|
:after cc-mode
|
||||||
:config
|
:config
|
||||||
(setq irony-server-install-prefix (concat narf-temp-dir "/irony/"))
|
(setq irony-server-install-prefix (concat narf-temp-dir "/irony/"))
|
||||||
(push "-std=c++11" irony-additional-clang-options)
|
(add-hook! c++-mode
|
||||||
|
(make-variable-buffer-local 'irony-additional-clang-options)
|
||||||
|
(push "-std=c++11" irony-additional-clang-options))
|
||||||
|
|
||||||
(require 'irony-eldoc)
|
(require 'irony-eldoc)
|
||||||
(require 'company-irony)
|
(require 'company-irony)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue