Difference between revisions of "Code Formatting Conventions"

Jump to navigation Jump to search
Added emacs setting
(→‎Whitespaces: Fix one level of nonsense in the for statement example)
(Added emacs setting)
Line 277: Line 277:
indent-preprocessor
indent-preprocessor
convert-tabs
convert-tabs
</pre>
=== Emacs style ===
Put the following in your .emacsrc file
<pre>
(setq-default default-tab-width 4)
(setq-default c-basic-offset 4)
(setq-default indent-tabs-mode t)
</pre>
</pre>

Navigation menu