[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to change the defualt indent style of java source file
From: |
David Hansen |
Subject: |
Re: How to change the defualt indent style of java source file |
Date: |
Fri, 22 Apr 2005 12:23:35 +0200 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux) |
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