[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: indentation of java inner classes

From: Kai Grossjohann
Subject: Re: indentation of java inner classes
Date: Sun, 26 Oct 2003 16:48:28 +0000
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.2 (gnu/linux)

Trevor Spiteri <> writes:

> Some code is indented as follows:
> [...]
> How do I make it indent as follows?

Can't say, but the general approach is to say C-c C-o on the first
line which has wrong indentation, then follow the prompts.  Then hit
TAB to reindent to see what happened.  Repeat until you like that
line's indentation, then proceed to the next line.

Using C-x ESC ESC and then M-p/M-n you can recall the c-set-offset
statements which you can just copy and paste into the following Lisp

(defun ts-java-mode-hook ()
  (c-set-offset ...)
  (c-set-offset ...))
(add-hook 'java-mode-hook 'ts-java-mode-hook)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]