[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: c and java indentation
From: |
Stefan Monnier |
Subject: |
Re: c and java indentation |
Date: |
Tue, 10 Feb 2004 01:20:25 GMT |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
> (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