diff --git a/profile.d/70_cpp-mode.el b/profile.d/70_cpp-mode.el index 83aaf7b61..1fca6f81c 100644 --- a/profile.d/70_cpp-mode.el +++ b/profile.d/70_cpp-mode.el @@ -2,15 +2,15 @@ (add-to-list 'auto-mode-alist '("\\.h$" . c++-mode));*.hをc++モードで開く -(require 'flycheck-autoloads) +(require 'flycheck) (defun ncaq-c++-mode-set () (c-set-style "bsd");http://www.02.246.ne.jp/~torutk/cxx/emacs/indentation.html (local-set-key (kbd "M-z") 'code-format-c)) (add-hook 'c-mode-common-hook 'ncaq-c++-mode-set) -;; (add-hook 'c-mode-hook (lambda () -;; (defvar flycheck-clang-language-standard "c11"))) +(add-hook 'c-mode-hook (lambda () + (setq flycheck-clang-language-standard "c11"))) (add-hook 'c++-mode-hook (lambda () - (defvar flycheck-clang-language-standard "c++11"))) + (setq flycheck-clang-language-standard "c++11"))) diff --git a/profile.d/70_cpp-mode.elc b/profile.d/70_cpp-mode.elc index e481b9ee0..6cea7c78c 100644 Binary files a/profile.d/70_cpp-mode.elc and b/profile.d/70_cpp-mode.elc differ