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) (add-hook 'flycheck-after-syntax-check-hook 'flycheck-autolist-hook)
(global-flycheck-mode) (global-flycheck-mode)
(setq flycheck-emacs-lisp-load-path "inherit") (setq flycheck-emacs-lisp-load-path "inherit")
(setq flycheck-clang-language-standard "-std=c++14") (setq flycheck-clang-args '("-stdlib=libc++" "-W" "-Wall"))
(setq flycheck-clang-args '("-W" "-Wall"))) (add-hook 'c++-mode-hook
(lambda ()
(setq-local flycheck-clang-language-standard "c++14"))))
(use-package company (use-package company
:init :init
@ -125,7 +127,9 @@
:config :config
(add-hook 'after-init-hook 'global-company-mode) (add-hook 'after-init-hook 'global-company-mode)
(global-set-key (kbd "M-/") 'company-complete) (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 ;; Latex
(use-package tex-mik (use-package tex-mik