unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Trying to bind a new key in C mode
@ 2005-02-12  0:09 Jim Hunter
  2005-02-12  2:41 ` August
       [not found] ` <mailman.1836.1108176936.2841.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 3+ messages in thread
From: Jim Hunter @ 2005-02-12  0:09 UTC (permalink / raw)


I would like to bind C-c c to run the 'compile' function in C mode 
(and, ultimately, C-c r to run 'recompile'), but cannot get it to
work.  Unfortunately, I know nothing about Lisp, so I simply copied
the example from the Emacs info page "Local Keymaps" and modified it
to this (in my .emacs file):

(add-hook 'c-mode-hook
		'(lambda ()
		   (define-key c-mode-map "\C-cc" 'compile)))

Any help would be greatly appreciated

Jim Hunter

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-02-12 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-12  0:09 Trying to bind a new key in C mode Jim Hunter
2005-02-12  2:41 ` August
     [not found] ` <mailman.1836.1108176936.2841.help-gnu-emacs@gnu.org>
2005-02-12 17:59   ` Jim Hunter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).