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

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

Re: Mode specific re-binding of the enter key


From: Nikolaj Schumacher
Subject: Re: Mode specific re-binding of the enter key
Date: Fri, 22 Jun 2007 08:50:50 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

Tassilo Horn <address@hidden> wrote:

> "Blake McBride" <address@hidden> writes:
>
> (add-hook 'c-mode-hook
>           (lambda ()
>             (local-set-key (kbd "RET") 'newline-and-indent)))

or:

(define-key c-mode-base-map (kbd "RET") 'newline-and-indent)


or, if cc-mode hasn't been loaded:

(eval-after-load 'cc-mode
  '(define-key c-mode-base-map (kbd "RET") 'newline-and-indent))



regards,
Nikolaj Schumacher




reply via email to

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