[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Trying to bind a new key in C mode
From: |
Jim Hunter |
Subject: |
Trying to bind a new key in C mode |
Date: |
11 Feb 2005 18:09:42 -0600 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
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
- Trying to bind a new key in C mode,
Jim Hunter <=