 ;; C n
 ;; ================================================================
 
-;; [(̑O)ł̓CfgAȊO̓^ȗ}
-(setq c-tab-always-indent nil)
-
+(defun my-all-cc-mode-init ()
+  ;; C n(cc-mode p)[hʂ̐ݒLq
+
+  ;; 󔒂Ȃǂxɍ폜
+  (c-toggle-hungry-state 1)
+
+  ;; sȂǂŎCfg
+  ;; (c-toggle-electric-state 1)
+  ;; 
+  ;; ";", "}" Ȃǂ͂ƂɎs
+  ;; Cfgꏏ ON ɂȂ
+  ;; (c-toggle-auto-newline 1)
+
+  )
+(add-hook 'c-mode-common-hook 'my-all-cc-mode-init)
 
 
 ;; C, C++

(autoload 'vs-set-c-style "vs-set-c-style"
  "Set the current buffer's c-style to Visual Studio like style. ")

(defun my-c-common-mode-init ()
  ;; C, C++ p̐ݒLq

  
  ;; 󔒂Ȃǂxɍ폜
  (c-toggle-hungry-state 1)

  ;; sȂǂŎCfg
  ;; (c-toggle-auto-newline 1)

  ;; sȂǂŎCfg
  ;; (c-toggle-auto-newline 1)
  
  ;; ";", "}" Ȃǂ͂ƂɎs
  ;; Cfgꏏ ON ɂȂ
  (c-toggle-auto-state 1)

  ;; Visual Studio ̐ݒ
  ;; (vs-set-c-style)
  ) 

(add-hook 'c-mode-hook 'my-c-common-mode-init)
(add-hook 'c++-mode-hook 'my-c-common-mode-init)


;; C#


;; [(̑O)ł̓CfgAȊO̓^ȗ}
(setq tab-always-indent nil)
(setq c-tab-always-indent nil)

;; 󔒂xɍ폜
(if (fboundp 'global-hungry-delete-mode)
