all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs and C programming
Date: Fri, 07 Dec 2007 18:49:11 +0100	[thread overview]
Message-ID: <85y7c6jsyw.fsf@lola.goethe.zz> (raw)
In-Reply-To: 475980f3$0$36443$4fafbaef@reader5.news.tin.it

"Co$t@ntino" <costailmigliore@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

  reply	other threads:[~2007-12-07 17:49 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-07 17:20 Emacs and C programming Co$t@ntino
2007-12-07 17:49 ` David Kastrup [this message]
2007-12-07 17:50 ` Sven Joachim
2007-12-07 18:04   ` Co$t@ntino
2007-12-07 18:29 ` Peter Dyballa

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85y7c6jsyw.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.