>>>> no spam writes: > if (someTest) > { > doSomething(); > doSomethingElse(); > } > Tab stops are set to 8. Each block of code is > indented by 4 from the previous block. (In the > vi editor set ts=8 set sw=4)
Try this.. you'll probably want to modify the tabs. (setq indent-tabs-mode nil tab-always-indent nil tab-stop-list '(4 8 12 16 20 24 28 32 36 40 44 48 52 56 60) tab-width 4) (defun my-c-mode-common-hook () (turn-on-font-lock) (setq c-tab-always-indent nil) (c-set-offset 'substatement-open 0) (c-set-offset 'arglist-intro 1) (c-set-offset 'defun-open 4) (c-set-offset 'defun-block-intro 0) (c-set-offset 'statement 0) (c-set-offset 'substatement-open 4) (c-set-offset 'statement-block-intro 0) (c-set-offset 'substatement 4) (c-set-offset 'statement-cont 4) (c-set-offset 'label -4) (c-set-offset 'topmost-intro-cont 4) (c-set-offset 'brace-list-intro 0) (c-set-offset 'class-open 4) (c-set-offset 'class-close 4) (c-set-offset 'topmost-intro '-) (c-set-offset 'brace-list-open 4) (c-set-offset 'access-label '--) (c-set-offset 'func-decl-cont 0) (c-set-offset 'case-label 0) (c-set-offset 'statement-case-intro 4) (c-set-offset 'statement-case-open 4) (c-set-offset 'inline-open '+)) (add-hook 'c-mode-common-hook 'my-c-mode-common-hook) _______________________________________________ Help-gnu-emacs mailing list Help-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/help-gnu-emacs