Hongyu Lu wrote:
> 
> Hi,
> 
> Could you please tell me how I can make jde to automatically indent the
> next line. Now I need to use TAB for every line. Thanks.
> 
> Hongyu Lu

This will most likely do what you want, if you put it in your .emacs:

         (define-key c-mode-base-map "\C-m" 'newline-and-indent)

I
You might need to run it in the java-mode hook, as so:

(defun my-java-mode-hook ()
         (define-key c-mode-base-map "\C-m" 'newline-and-indent))
(add-hook 'java-mode-hook 'my-java-mode-hook)

Reply via email to