unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: David Hansen <david.hansen@gmx.net>
Subject: Re: How to change the defualt indent style of java source file
Date: Fri, 22 Apr 2005 12:23:35 +0200	[thread overview]
Message-ID: <87fyxjp0t4.fsf@robotron.ath.cx> (raw)
In-Reply-To: mailman.2524.1114145377.2895.help-gnu-emacs@gnu.org

On Fri, 22 Apr 2005 12:41:32 +0800 Xiangqian Liu wrote:

> actually the style I expect is 
> public void helloWorld()
> {
>   if(today.weather == find)
>   {
>     System.out.println("oh~ a fine day~");
>
>   }
> }

Does this help?

(defun my-java-mode-hook ()
  (c-set-style "k&r")
  (setq c-basic-offset 2))

(add-hook 'java-mode-hook 'my-java-mode-hook)

David

       reply	other threads:[~2005-04-22 10:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.2524.1114145377.2895.help-gnu-emacs@gnu.org>
2005-04-22 10:23 ` David Hansen [this message]
2005-04-22  4:41 How to change the defualt indent style of java source file Xiangqian Liu

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=87fyxjp0t4.fsf@robotron.ath.cx \
    --to=david.hansen@gmx.net \
    /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).