Created
January 12, 2011 06:31
-
-
Save ongaeshi/775778 to your computer and use it in GitHub Desktop.
csharp-modeのインデントをVisualStudioに近づける設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;-------------------------------------------------------------------------- | |
;; csharp-mode | |
;; (install-elisp-from-emacswiki "csharp-mode.el") | |
;;-------------------------------------------------------------------------- | |
(require 'csharp-mode) | |
;; Cモード共通フック | |
(add-hook 'csharp-mode-hook | |
'(lambda() | |
(setq comment-column 40) | |
(setq c-basic-offset 4) | |
(font-lock-add-magic-number) | |
;; オフセットの調整 | |
(c-set-offset 'substatement-open 0) | |
(c-set-offset 'case-label '+) | |
(c-set-offset 'arglist-intro '+) | |
(c-set-offset 'arglist-close 0) | |
) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment