[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to bind the keyboard 'C-;'

From: Vols
Subject: How to bind the keyboard 'C-;'
Date: 13 Mar 2007 16:12:39 -0700
User-agent: G2/1.0

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 ()
  (comment-region (line-beginning-position) (line-end-position)))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]