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

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

Re: Emacs and C programming


From: David Kastrup
Subject: Re: Emacs and C programming
Date: Fri, 07 Dec 2007 18:49:11 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

"address@hidden" <address@hidden> 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


reply via email to

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