i want a shortcut for the nice little function
The thing is, it works fine for me in every mode using
M-x comment-or-uncomment-region. And espacially it works differently (
# for python and
// for C++) so everything is fine here.
But as i said i want a shortcut for this.
So i wrote the following in my
(global-set-key (kbd "C-;") 'comment-or-uncomment-region)
This now works for all my .cpp files, where I'm in c++-mode, but in python-mode it says, this function is not on a key. But i think its global-set, so what am I doing wrong? Or are some other functions able to unset the key (maybe in the initialization) ?