[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to disable C++ namespace indentation
From: |
chun |
Subject: |
Re: how to disable C++ namespace indentation |
Date: |
Wed, 27 Jan 2010 20:16:44 -0800 (PST) |
User-agent: |
G2/1.0 |
Brilliant. It works. I did a quick merge into my existing .emacs
format like this:
(c-add-style "mycodingstyle"
'((c-comment-only-line-offset . 0)
(c-hanging-braces-alist . ((substatement-open before
after)))
(c-offsets-alist . ((topmost-intro . 0)
(topmost-intro-cont . 0)
(substatement . 3)
(substatement-open . 0)
(statement-case-open . 3)
(statement-cont . 3)
(access-label . -3)
(inclass . 3)
(inline-open . 3)
(innamespace . 0)
))))
;; c/c++ mode
(add-hook 'c-mode-common-hook
'(lambda()
(c-set-style "mycodingstyle")
(setq tab-width 2)
(setq c-basic-offset tab-width)))
Thanks so much for help!!!
Chun