From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: How to change the defualt indent style of java source file Date: Fri, 22 Apr 2005 12:23:35 +0200 Organization: disorganized Message-ID: <87fyxjp0t4.fsf@robotron.ath.cx> References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1114168730 29301 80.91.229.2 (22 Apr 2005 11:18:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 22 Apr 2005 11:18:50 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 22 13:18:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DOwAd-00039x-Az for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 13:18:03 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DOwFW-00086O-D5 for geh-help-gnu-emacs@m.gmane.org; Fri, 22 Apr 2005 07:23:06 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-X-Trace: news.t-online.com 1114166268 05 3595 Ii8nrSVOZNm1YE2 050422 10:37:48 Original-X-Complaints-To: usenet-abuse@t-online.de X-ID: Tlgp1ZZYZec5zflUWDUxZddHvplaELET1EB06J4SLpW4tv289Uer6g Mail-Copies-To: nobody User-Agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:8gM9mvi0gJ3dRHnXW+QrdCqZTiM= Original-Xref: shelby.stanford.edu gnu.emacs.help:130370 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25941 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25941 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