| Re: Emacs and C programming |
|
 |
|
 |
|
 |
|
 |
Group: gnu.emacs.help · Group Profile
Author: David KastrupDavid Kastrup Date: Dec 7, 2007 09:49
"Co$t@ntino" hotmail.com> writes:
> Hi,
> I add this line in my .emacs file:
>
> (define-key c-mode-base-map "\C-m' newline-and-indent)
>
> To make RET (newline, C-m) equivalent to LFD (newline and indent, C-j).
>
> But when start Emacs says: "Symbol's value as variable is void:
> c-mode-base-map".
> How could I fix it?
(eval-after-load 'cc-mode
'(define-key c-mode-base-map "\C-n" 'newline-and-indent))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
|