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-6833
ISX Corporation   [EMAIL PROTECTED]

Reply via email to