Re: how to change default indent style of java source files

2005-04-26 Thread litchi
On Tue, Apr 26, 2005 at 08:02:23AM -0400, Greg Rowe wrote: > litchi wrote: > > > >(defun my-java-mode-hook () > > (c-set-style "k&r") > > (setq c-basic-offset 2)) > > > > (add-hook 'java-mode-hook 'my-java-mode-hook) > >but I dont know the meaning of those statements > >I am totally a newer

Re: how to change default indent style of java source files

2005-04-26 Thread Greg Rowe
litchi wrote: (defun my-java-mode-hook () (c-set-style "k&r") (setq c-basic-offset 2)) (add-hook 'java-mode-hook 'my-java-mode-hook) but I dont know the meaning of those statements I am totally a newer to lisp and emacs You defined function called 'my-java-mode-hook'. In that function yo

Re: how to change default indent style of java source files

2005-04-25 Thread litchi
On Mon, Apr 25, 2005 at 09:37:53AM -0600, Kevin Rodgers wrote: > litchi wrote: > > On Fri, Apr 22, 2005 at 12:36:34PM -0400, Greg Rowe wrote: > >>That's odd. The default coding style when I'm in java mode in emacs is > >>the 'java' coding style which matches the style you are looking for. > >> > >

Re: how to change default indent style of java source files

2005-04-25 Thread Kevin Rodgers
litchi wrote: > On Fri, Apr 22, 2005 at 12:36:34PM -0400, Greg Rowe wrote: >>That's odd. The default coding style when I'm in java mode in emacs is >>the 'java' coding style which matches the style you are looking for. >> >>Anyhow, to change your coding style you can execute "C-c ." while emacs >>

Re: how to change default indent style of java source files

2005-04-22 Thread litchi
On Fri, Apr 22, 2005 at 12:36:34PM -0400, Greg Rowe wrote: > litchi wrote: > > >a question 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 st

Re: how to change default indent style of java source files

2005-04-22 Thread Greg Rowe
litchi wrote: a question 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.