http://sunsite.auc.dk/fom/jde/cache/8.html
Suresh
Bruce Seely wrote:
I'm not sure how to do this with the customization facility, but this is what I do:;; custom indentation style
(defun jde-mode-mods ()
(c-set-offset 'topmost-intro-cont 0 t)
(setq c-comment-continuation-stars "* ")
(c-set-offset 'statement-block-intro 1 t) ; offset text in blocks
(setq c-indent-comments-syntactically-p nil)
(setq c-basic-offset 2) ; set default indentation amount
)
(add-hook 'jde-mode-hook 'jde-mode-mods)From here, you can probably figure out how to do what you want.
At 01:35 PM 02/23/2000 , Charlie Hand wrote:
>Perhaps someone on this list can help me with this emacs
>question.
>
>I have the following in my .emacs file:
>(define-key jde-mode-map (kbd "RET") 'newline-and-indent)
>
>When I write a statement which contains a block, emacs wants to
>indent like this:
>
>public void foo ()
> {
> // code
> }
>
>The curly brackets are indented one level more than I wanted.
>
>I understand what it's doing - it hasn't seen the end of a statement
>yet, so it's indenting. This is the desired behavior, except in the
>case of a method declaration, class declaration, while statement, if
>statement, etc.
>
>Is there a way to make it do this:
>
>public void foo()
>{
> // code
>}
>
>-Charlie
___________________________________Bruce Seely (818) 735-6833ISX Corporation [EMAIL PROTECTED]
begin:vcard n:Ramaswamy;Suresh tel;fax:(650) 506-7419 tel;home:(650) 572-1931 tel;work:(650) 506-8463 x-mozilla-html:TRUE org:Oracle Corporation;Oracle Developer version:2.1 email;internet:[EMAIL PROTECTED] title:Senior Technical Staff adr;quoted-printable:;;200, Oracle Parkway=0D=0AM/S 2op949=0D=0A;Redwood Shores;CA;94065;USA x-mozilla-cpt:;-1 fn:Suresh Ramaswamy end:vcard
