all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andrew Taylor <ataylor@its.to>
Subject: Re: indenting java code
Date: Tue, 04 Nov 2003 00:10:56 GMT	[thread overview]
Message-ID: <k8Cpb.285178$pl3.193218@pd7tw3no> (raw)
In-Reply-To: <bo6pdt$7af$1@mughi.cs.ubc.ca>

Lowell Kirsh wrote:

> How can I change the indent level for Java code from 4 spaces to 2 spaces?

(add-hook 'java-mode-hook
           (lambda ()
             (set 'c-basic-offset 2)))

-- 
Andrew

  reply	other threads:[~2003-11-04  0:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-03 23:47 indenting java code Lowell Kirsh
2003-11-04  0:10 ` Andrew Taylor [this message]
2003-11-04  2:09   ` Lowell Kirsh
2003-11-04 15:49   ` Stefan Monnier
2003-11-05 23:17     ` Dan Anderson
     [not found]     ` <mailman.3280.1068074352.21628.help-gnu-emacs@gnu.org>
2003-11-06 18:12       ` Kevin Rodgers
2003-11-06 22:14       ` Stefan Monnier

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

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

  git send-email \
    --in-reply-to='k8Cpb.285178$pl3.193218@pd7tw3no' \
    --to=ataylor@its.to \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.