This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: proper .emacs for gcc code?


Tom Tromey writes:
 > >>>>> "Adam" == Adam Megacz <gcj@lists.megacz.com> writes:
 > 
 > Adam> Does anybody know the magic incantation to get emacs to indent
 > Adam> code the way the gcc source tree does it?
 > 
 > I use this:
 > 
 > (add-hook 'java-mode-hook 
 > 	  (function 
 > 	   (lambda ()
 > 	     (c-set-offset 'inline-open 0)
 > 	     )))

Better:

(add-hook 'java-mode-hook 
	  (function 
	   (lambda ()
	     (progn
	       (c-set-style "gnu")
	       (c-set-offset 'inline-open 0)
	       ))))

Andrew.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]