* java indentation
@ 2002-11-13 20:46 chris.danx
2002-11-13 21:49 ` Benjamin Lewis
0 siblings, 1 reply; 3+ messages in thread
From: chris.danx @ 2002-11-13 20:46 UTC (permalink / raw)
Hi,
How can you change the indentation style for Java(/c++) to bsd style
(via .emacs)? For C, this worked...
(add-hook 'c-mode-common-hook
(function
(lambda () (c-set-style "bsd") (setq c-basic-offset 4))))
but I can't figure out how to get this to work for cc-mode (java uses cc
mode right?). Someone thought that should work for Java, but it won't.
Does anyone know how to do this?
Cheers,
Chris
--
for personal replies change spamoff to chris
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: java indentation
2002-11-13 20:46 java indentation chris.danx
@ 2002-11-13 21:49 ` Benjamin Lewis
2002-11-13 22:16 ` chris.danx
0 siblings, 1 reply; 3+ messages in thread
From: Benjamin Lewis @ 2002-11-13 21:49 UTC (permalink / raw)
On Wed, 13 Nov 2002, chris danx wrote:
> Hi,
>
> How can you change the indentation style for Java(/c++) to bsd style (via
> .emacs)? For C, this worked...
>
>
> (add-hook 'c-mode-common-hook
> (function
> (lambda () (c-set-style "bsd") (setq c-basic-offset 4))))
>
> but I can't figure out how to get this to work for cc-mode (java uses cc
> mode right?). Someone thought that should work for Java, but it
> won't. Does anyone know how to do this?
Try adding it to java-mode-hook instead; I do something like this and it
works for me.
--
Benjamin Lewis
Amoebit:
Amoeba/rabbit cross; it can multiply and divide at the same time.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2002-11-13 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-11-13 20:46 java indentation chris.danx
2002-11-13 21:49 ` Benjamin Lewis
2002-11-13 22:16 ` chris.danx
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).