home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!europa.asd.contel.com!darwin.sura.net!uvaarpa!murdoch!virginia.edu!gs4t
- From: gs4t@virginia.edu (Gnanasekaran Swaminathan)
- Subject: Re: C++ mode in emacs and unbinding C-cC-c
- Message-ID: <1992Aug28.005832.1668@murdoch.acc.Virginia.EDU>
- Sender: usenet@murdoch.acc.Virginia.EDU
- Reply-To: gs4t@virginia.edu (Gnanasekaran Swaminathan)
- Organization: University of Virginia
- References: <1992Aug27.154259.558@Warren.MENTORG.COM>
- Date: Fri, 28 Aug 1992 00:58:32 GMT
- Lines: 24
-
- sharma@euler.Warren.MENTORG.COM (Sharma Kunapalli) writes:
- : Hi All,
- :
- : When I am in the C++ mode in emacs, C-cC-c is
- : automatically bound to 'c++-comment-region'.
- : What I want is to bind C-cC-c to 'compile'.
- :
- : I have tried doing global-set-key C-cC-c to compile.
- : Doesnt work.
- :
- : I have tried global-unset-key C-cC-c first and then
- : bind it to 'compile'. Doesnt work.
- :
- : Any help on how I can bind C-cC-c to 'compile'
- : would be appreciated.
-
- Add the following to your .emacs file
-
- (setq c++-mode-hook 'my-key)
- (defun my-key ()
- "My binding for c++-mode."
- (define-key c++-mode-map "\C-c\C-c" 'compile))
-
- -Sekar
-