* Binding C-c C-c to Perl Comments
@ 2003-10-02 17:28 Dan Anderson
0 siblings, 0 replies; 3+ messages in thread
From: Dan Anderson @ 2003-10-02 17:28 UTC (permalink / raw)
In C Mode when I press C-c C-c it comments out the marked text in a
buffer using C type comments -- i.e. //
Is there a way to tell C-c C-c to use # instead in perl mode?
Thanks,
Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: Binding C-c C-c to Perl Comments
@ 2003-10-02 17:43 andrew.maguire
0 siblings, 0 replies; 3+ messages in thread
From: andrew.maguire @ 2003-10-02 17:43 UTC (permalink / raw)
> From: Dan Anderson
>
> In C Mode when I press C-c C-c it comments out the marked text in a
> buffer using C type comments -- i.e. //
>
> Is there a way to tell C-c C-c to use # instead in perl mode?
(define-key cperl-mode-map "\C-c\C-c" 'comment-region)
Andrew
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Binding C-c C-c to Perl Comments
[not found] <mailman.1022.1065116110.21628.help-gnu-emacs@gnu.org>
@ 2003-10-02 17:56 ` Stefan Monnier
0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2003-10-02 17:56 UTC (permalink / raw)
> In C Mode when I press C-c C-c it comments out the marked text in a
> buffer using C type comments -- i.e. //
> Is there a way to tell C-c C-c to use # instead in perl mode?
If you use transient-mark-mode, I recommend M-; which should
work pretty much in all modes.
Stefan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-10-02 17:56 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-02 17:28 Binding C-c C-c to Perl Comments Dan Anderson
-- strict thread matches above, loose matches on Subject: below --
2003-10-02 17:43 andrew.maguire
[not found] <mailman.1022.1065116110.21628.help-gnu-emacs@gnu.org>
2003-10-02 17:56 ` Stefan Monnier
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).