From 936d5ba7b47736f1a6160c30688fc5692bb49360 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Thu, 16 Mar 2017 10:32:21 +0100 Subject: [PATCH] Update init.el. --- .emacs.d/init.el | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 1be8009..c85ae7b 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -109,8 +109,10 @@ (add-hook 'flycheck-after-syntax-check-hook 'flycheck-autolist-hook) (global-flycheck-mode) (setq flycheck-emacs-lisp-load-path "inherit") - (setq flycheck-clang-language-standard "-std=c++14") - (setq flycheck-clang-args '("-W" "-Wall"))) + (setq flycheck-clang-args '("-stdlib=libc++" "-W" "-Wall")) + (add-hook 'c++-mode-hook + (lambda () + (setq-local flycheck-clang-language-standard "c++14")))) (use-package company :init @@ -125,7 +127,9 @@ :config (add-hook 'after-init-hook 'global-company-mode) (global-set-key (kbd "M-/") 'company-complete) - (setq company-clang-arguments '("-std=c++14"))) + (add-hook 'c++-mode-hook + (lambda () + (setq-local company-clang-arguments '("-std=c++14"))))) ;; Latex (use-package tex-mik