unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Vols" <volunteers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to bind the keyboard 'C-;'
Date: 13 Mar 2007 16:12:39 -0700	[thread overview]
Message-ID: <1173827558.982466.298930@p15g2000hsd.googlegroups.com> (raw)

Hi, group

I want the keyboard binding 'Control  ;' , for example, I tried:
(global-set-key  "\C-;" 'kill-this-buffe)
It doesn't work and comes with a "invalid modifier in string" error.

Actually i want to use 'C-;' to comment current line. (M-; add comment
at the end of the line). I used :

(global-set-key  "\C-;" 'my-comment-current-line)
(defun my-comment-current-line ()
  (interactive)
  (comment-region (line-beginning-position) (line-end-position)))

Thanks.
Vol.

             reply	other threads:[~2007-03-13 23:12 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-13 23:12 Vols [this message]
2007-03-14  0:49 ` How to bind the keyboard 'C-;' John Paul Wallington
2007-03-16  7:00   ` Kevin Rodgers
     [not found]   ` <mailman.994.1174028547.7795.help-gnu-emacs@gnu.org>
2007-03-16 14:06     ` Stefan Monnier

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=1173827558.982466.298930@p15g2000hsd.googlegroups.com \
    --to=volunteers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /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).