Skip to content

Instantly share code, notes, and snippets.

@ongaeshi
Created January 12, 2011 06:31
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ongaeshi/775778 to your computer and use it in GitHub Desktop.
Save ongaeshi/775778 to your computer and use it in GitHub Desktop.
csharp-modeのインデントをVisualStudioに近づける設定
;;--------------------------------------------------------------------------
;; 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