unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: indentation of java inner classes
Date: Sun, 26 Oct 2003 16:48:28 +0000	[thread overview]
Message-ID: <8765icymg3.fsf@www.emptydomain.de> (raw)
In-Reply-To: mailman.999.1065090235.21628.help-gnu-emacs@gnu.org

Trevor Spiteri <tspiteri@ieee.org> 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
snippet:

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

Kai

       reply	other threads:[~2003-10-26 16:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.999.1065090235.21628.help-gnu-emacs@gnu.org>
2003-10-26 16:48 ` Kai Grossjohann [this message]
2003-10-02 10:10 indentation of java inner classes Trevor Spiteri

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8765icymg3.fsf@www.emptydomain.de \
    --to=kai@emptydomain.de \
    /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.
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).