help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c and java indentation


From: Lowell Kirsh
Subject: Re: c and java indentation
Date: Mon, 09 Feb 2004 17:30:56 -0800
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.5) Gecko/20031029

d'oh, I meant 'local'. Thanks.

lowell

Stefan Monnier wrote:
            (global-set-key [ return ] 'newline-and-indent)))


              (local-set-key [(control ?m)] 'newline-and-indent)

or for something a bit more obvious

              (local-set-key (kbd "RET") 'newline-and-indent)

Why use `global-set-key' if you only want it in java-mode?
Or alternatively, why put it in java-mode-hook if you want it everywhere.


        Stefan



reply via email to

[Prev in Thread] Current Thread [Next in Thread]