Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I have a problem with following key binding:
(global-set-key (kbd "C-/") 'comment-or-uncomment-region)
Actually, it is ignored by Emacs so undo is executed instead.
I'm running Emacs in gui mode.
Thanks to describe-key, I found that / is interprpeted as a <kp-divide>, so this keybind is working like a charm now. (thanks lawlist)
(global-set-key (kbd "C-<kp-divide>") 'comment-or-uncomment-region)
Required, but never shown