From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Vols" Newsgroups: gmane.emacs.help Subject: How to bind the keyboard 'C-;' Date: 13 Mar 2007 16:12:39 -0700 Organization: http://groups.google.com Message-ID: <1173827558.982466.298930@p15g2000hsd.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1173829195 13290 80.91.229.12 (13 Mar 2007 23:39:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 13 Mar 2007 23:39:55 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 14 00:39:49 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HRGar-0000gS-6I for geh-help-gnu-emacs@m.gmane.org; Wed, 14 Mar 2007 00:39:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HRGbf-0005Fs-R2 for geh-help-gnu-emacs@m.gmane.org; Tue, 13 Mar 2007 18:40:39 -0500 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!p15g2000hsd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 17 Original-NNTP-Posting-Host: 12.44.178.253 Original-X-Trace: posting.google.com 1173827560 2683 127.0.0.1 (13 Mar 2007 23:12:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 13 Mar 2007 23:12:40 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.8) Gecko/20061107 Fedora/1.5.0.8-1.fc6 Firefox/1.5.0.8 pango-text,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: p15g2000hsd.googlegroups.com; posting-host=12.44.178.253; posting-account=tqteEA0AAADA9sbJQqERV8VgAMTGSaC_ Original-Xref: shelby.stanford.edu gnu.emacs.help:146337 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:41941 Archived-At: 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.