Custom emacs indenting c mode -


The coding format style used in my work is as follows:

  public: trace Indent (int i = 0): _i (i) {if (_i) {nesting ++; }}  

Tabs are three spaces but there is no indentation after the braces Is it possible to get this type of formatting for sim-mode in emacs?

It seems like I have trouble. After a little research, I came to know that this type of style is known as "Whitesmith". I put these lines in my Macs init.el, which resolved this issue. Hopefully, it will be helpful for anyone.

  (setq c-default-style "whitesmith" c-basic-offset 3)  

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -