 ;; 
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 
-;; x֎~
+;; r[v֎~
 (setq ring-bell-function 'ignore)
 
 

(setq inhibit-startup-screen t)


;; ̈IA폜L[ňꊇ폜
(delete-selection-mode t)

;; s kill-line (C-k) ōsŜō폜
(setq kill-whole-line t)

;; ǂݎpobt@[łJbgnŃRs[\

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;


;; C n
;; ================================================================

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

;; 󔒂xɍ폜
(setq c-hungry-delete-key t)

;; {, ; Ȃǂ̃L[͂ƎŉsACfg
(setq c-auto-newline t)



;; C, C++
;; ================================================================

;; .h ł C++
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))


(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

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

  ;; M-<return> ŃRgp̉s
  (local-set-key (kbd "M-RET") 'c-indent-new-comment-line)
  ) 

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


;; C#
;; ================================================================

(defun my-csharp-mode-init ()
  ;; C# p̐ݒLq

  
  ;; auto-complete L
  (if (fboundp 'auto-complete-mode)
      (auto-complete-mode 1))

  ;; "{" ̃Cfg𐳏
  (local-set-key "{" 'c-electric-brace)

  ;; Cfg
  (setq c-basic-offset 4)
  (setq tab-width 4)
  (setq c-hanging-braces-alist
	'((defun-open   	before after)
	  (defun-close 	    	before after)
	  (class-open  	    	before after)
	  (class-close 	    	before)
	  (namespace-open   	before after)
	  (namespace-close	before after)
	  (inline-open      	before after)
	  (inline-close     	before after)
	  (block-open   	before after)
	  (block-close  	before after)
	  (statement-case-open after)
	  (substatement-open   before after))))
(add-hook 'csharp-mode-hook 'my-csharp-mode-init)

(add-to-list 'auto-mode-alist '("\\.xaml\\'" . xml-mode))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
