From: "chris.danx" <spamoff.danx@ntlworld.com>
Subject: Re: C formatting
Date: Sat, 28 Dec 2002 01:11:05 +0000 [thread overview]
Message-ID: <6Q6P9.169$fA3.25203@newsfep1-gui.server.ntli.net> (raw)
In-Reply-To: <3E0CED7C.7020002@free.fr>
Oodini wrote:
> hello,
>
> I am fighting with EMacs in order to get my programmation style:
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)
> {
> blabla;
> if (...)
> {
> blabla
> blabla
> }
> else
> blabla;
> }
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
next prev parent reply other threads:[~2002-12-28 1:11 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-28 0:17 C formatting Oodini
2002-12-28 0:39 ` Bijan Soleymani
2002-12-28 11:47 ` Oodini
2002-12-28 11:50 ` Oodini
2002-12-28 12:32 ` Jesper Harder
2002-12-28 13:05 ` Kai Großjohann
2002-12-28 13:13 ` Oodini
2002-12-28 1:11 ` chris.danx [this message]
2002-12-28 12:31 ` Oodini
2002-12-28 12:57 ` chris.danx
2002-12-28 13:03 ` Oodini
2002-12-28 13:03 ` Kai Großjohann
2002-12-28 11:05 ` Kai Großjohann
2002-12-28 12:52 ` Oodini
2002-12-28 13:50 ` Kai Großjohann
2002-12-28 13:53 ` Kai Großjohann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='6Q6P9.169$fA3.25203@newsfep1-gui.server.ntli.net' \
--to=spamoff.danx@ntlworld.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.