I am trying to set [Ctrl] - [;] as a key binding in my .emacs such as
(global-set-key "\C-;" 'comment-or-uncomment-region)
however, it does not work when I try (I do not receive any error messages, it just does not affect). It will work if I try a normal character (for example, set it to "\ Cp").
I also tried
(global-set-key (kbd "C-;") 'comment-or-uncomment-region)
but I donβt like this option because for me it doesnβt work when I run "emacs -nw". Any thoughts on how I can do this?
EDIT: When I run Ch c C-; in emacs -nw , I get the output:
which is exactly the same as starting Ch c ; in emacs -nw
So, I believe that phils is right, that this is a terminal problem, because emacs never sees C-; she sees only ;
source share