Skip to content

Commit

Permalink
defvarとsetqの違いがよくわかっていないというゴミ
Browse files Browse the repository at this point in the history
  • Loading branch information
ncaq committed Nov 14, 2013
1 parent 9271484 commit 6bad993
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions profile.d/70_cpp-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Binary file modified profile.d/70_cpp-mode.elc
Binary file not shown.

0 comments on commit 6bad993

Please sign in to comment.