unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Andy" <gngandy@gmail.com>
Subject: Re: How to uncomment Perl program in emacs?
Date: 19 Aug 2005 09:06:01 -0700	[thread overview]
Message-ID: <1124467561.583599.312110@g14g2000cwa.googlegroups.com> (raw)
In-Reply-To: <a664ed.46.ln@acm.acm>

Alan Mackenzie 写道:

> C-u M-x comment-region  ;-)

"C-u M-x comment-region" works perfectly on my Emacs (which I igorantly
thought to be recent version, sorry about it) to uncomment Perl codes.
Thanks a lot!

> Put this in your .emacs:
>
>   (eval-after-load "perl-mode"
>     '(define-key perl-mode-map "\C-c\C-c"  'comment-region))
>
> (DON'T miss out the tick at the beginning of the second line.  It's
> important.)

> That should set up your mode so that you can use C-c C-c for perl.

I can achieve both commenting Perl code with "\C-c\C-c" and
uncommenting with "C-u\C-c\C-c" after I put in those macros as you
suggested to .emacs. Again, Thanks tremendously!

> Alan Mackenzie (Munich, Germany)


Andy

  reply	other threads:[~2005-08-19 16:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 21:23 How to uncomment Perl program in emacs? Andy
2005-08-18 22:13 ` David Hansen
2005-08-19  2:45   ` Andy
2005-08-19  3:32     ` Henrik Enberg
2005-08-18 22:37 ` Edward O'Connor
     [not found] ` <mailman.4248.1124405039.20277.help-gnu-emacs@gnu.org>
2005-08-19  2:49   ` Andy
2005-08-19  7:16 ` ht000
2005-08-19  8:44 ` Alan Mackenzie
2005-08-19 16:06   ` Andy [this message]
2005-08-19 10:53 ` Michael Cadilhac
  -- strict thread matches above, loose matches on Subject: below --
2005-08-19  4:09 Dave Humphries

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1124467561.583599.312110@g14g2000cwa.googlegroups.com \
    --to=gngandy@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).