|
Re: C formatting: msg#00873emacs.help
Oodini wrote: hello, Did that a while back too, but thankfully someone gave me some code that gives a nice looking indentation style. void function(int x, int y) This works ok for me and produces indentation like above (add-hook 'c-mode-hook (function (lambda () (c-set-style "bsd") (setq c-basic-offset 4)))) and this works for Java mode (just in case you need it later) (add-hook 'java-mode-hook (function (lambda () (c-set-style "bsd") (setq c-basic-offset 4)))) Danx -- for personal replies change spamoff to chris |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: C formatting: 00873, Bijan Soleymani |
|---|---|
| Next by Date: | Re: Software/HD ecology: 00873, Luis Fernandes |
| Previous by Thread: | Re: C formattingi: 00873, Oodini |
| Next by Thread: | Re: C formatting: 00873, Oodini |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |