Update init.el.

This commit is contained in:
Mikaël Capelle 2017-03-16 10:32:21 +01:00
parent 185df83412
commit 936d5ba7b4

View File

@ -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