From: Kai Grossjohann <kai@emptydomain.de>
Subject: Re: Several questions about the use of emacs
Date: Mon, 29 Nov 2004 12:46:47 +0100 [thread overview]
Message-ID: <86pt1w3mjc.fsf@ketchup.de.uu.net> (raw)
In-Reply-To: 16A54BF5D6E14E4D916CE26C9AD30575A4F6E6@pdsmsx402.ccr.corp.intel.com
"Chen, Yukun" <yukun.chen@intel.com> writes:
> 1. How can I comments a block of content once? (mean that I
> can comment sever lines by marking them with "//" at the start
> position in c language. I think it is useful in c development)
Mark the region and hit M-;. Hitting M-; again removes the comment
lines again. I think you need to turn on transient-mark-mode for this
to work.
Perhaps C mode also supports the C-c C-c binding to comment a region
of code. Use C-u C-c C-c to uncomment.
> 2. Has emacs provided the function that complete the left
> character of a word, just as the commands of vi "ctrl + n"
> "ctrl + p" do?
There are M-/ and C-M-/. I think that M-/ is somewhat similar to
Ctrl-P, but it searches in both directions and it searches other
buffers, too. C-M-/ provides completion, whereas M-/ cycles through
the list of possibilities.
Kai
next prev parent reply other threads:[~2004-11-29 11:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-29 7:34 Several questions about the use of emacs Chen, Yukun
2004-11-29 11:46 ` Kai Grossjohann [this message]
-- strict thread matches above, loose matches on Subject: below --
2004-11-30 4:33 Chen, Yukun
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=86pt1w3mjc.fsf@ketchup.de.uu.net \
--to=kai@emptydomain.de \
/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).