From: Xiangqian Liu <smartlitchi@gmail.com>
Subject: How to change the defualt indent style of java source file
Date: Fri, 22 Apr 2005 12:41:32 +0800 [thread overview]
Message-ID: <d0ff202705042121416a82e50d@mail.gmail.com> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 718 bytes --]
I am turning from vim to emacs ,and the first step seems a little
difficult~~
a problem is the indent style of emacs default is just like
public void helloWorld()
{
if(today.weather == find)
{
System.out.println("oh~ a fine day~");
}
}
but actually the style I expect is
public void helloWorld()
{
if(today.weather == find)
{
System.out.println("oh~ a fine day~");
}
}
you may notice that the position of { } of the if loop has been changed
to be accord with that if statement, seems this is the recommand code
style of Sun's documentation
but I can't find how to change emacs's default indent style to this
Best regards
Litchi
--
不管如何伟大的恋情,有结局,何况是我这微不足道的痴恋
[-- Attachment #1.2: Type: text/html, Size: 839 bytes --]
[-- Attachment #2: Type: text/plain, Size: 152 bytes --]
_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
next reply other threads:[~2005-04-22 4:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 4:41 Xiangqian Liu [this message]
[not found] <mailman.2524.1114145377.2895.help-gnu-emacs@gnu.org>
2005-04-22 10:23 ` How to change the defualt indent style of java source file David Hansen
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=d0ff202705042121416a82e50d@mail.gmail.com \
--to=smartlitchi@gmail.com \
/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).