unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* auto complile the C program in the current buffer
@ 2005-02-13 18:51 GVK
  2005-02-14 18:41 ` Kevin Rodgers
  0 siblings, 1 reply; 6+ messages in thread
From: GVK @ 2005-02-13 18:51 UTC (permalink / raw)


Hello,
	I have the following lines in my .emacs for python mode

(add-hook 'python-mode-hook
           '(lambda()
              (define-key py-mode-map "\C-c\C-c" 'py-execute-prog)
              (define-key py-mode-map "\C-c\C-g" 'py-call-pdb)
              (define-key py-mode-map "\C-c\C-w" 'py-checker)))
(load "py-mode-ext.el")


When I type C-c C-c in python mode, the python program in the current 
buffer will be interepreted. How can I do the same with C? I have the 
following lines for C mode

(define-key c-mode-map "\C-c\C-c" 'compile)
(setq compile-command "gcc ")

But when I type C-c C-c, all I get in minibuffer is the line

gcc

How can I make C-c C-c compile the C prog in the current buffer?

Regards,
GVK

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

end of thread, other threads:[~2005-02-16  8:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-13 18:51 auto complile the C program in the current buffer GVK
2005-02-14 18:41 ` Kevin Rodgers
2005-02-15  4:17   ` GVK
2005-02-15 18:36     ` Kevin Rodgers
2005-02-15 22:40       ` Hendrik Sattler
2005-02-16  8:40       ` GVK

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).