My IDL style.
This commit is contained in:
parent
6258d9369e
commit
dd072d4ce7
1 changed files with 25 additions and 0 deletions
|
|
@ -324,6 +324,31 @@
|
||||||
|
|
||||||
;; (global-set-key (read-kbd-macro "C-i") 'indent-buffer)
|
;; (global-set-key (read-kbd-macro "C-i") 'indent-buffer)
|
||||||
|
|
||||||
|
;; IDL
|
||||||
|
(c-add-style "ms-idl"
|
||||||
|
'("gnu"
|
||||||
|
(c-basic-offset . 4)
|
||||||
|
(c-offsets-alist . ((c . c-lineup-C-comments)
|
||||||
|
(inclass . +)
|
||||||
|
(access-label . -)
|
||||||
|
(defun-block-intro . +)
|
||||||
|
(substatement-open . 0)
|
||||||
|
(statement-block-intro . +)
|
||||||
|
(innamespace . +)
|
||||||
|
(statement-case-intro . +)
|
||||||
|
(statement-case-open . 0)
|
||||||
|
(brace-list-intro . +)
|
||||||
|
(substatement . +)
|
||||||
|
(arglist-intro . +)
|
||||||
|
(arglist-close . 0)
|
||||||
|
(statement-case-open . +)
|
||||||
|
))))
|
||||||
|
|
||||||
|
(defun my-idl-mode-hook ()
|
||||||
|
(c-set-style "ms-idl"))
|
||||||
|
|
||||||
|
(add-hook 'idl-mode-hook 'my-idl-mode-hook)
|
||||||
|
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
;; C#-Mode configuration.
|
;; C#-Mode configuration.
|
||||||
;; =================================================================
|
;; =================================================================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue