in emacs, I would like to remap \C-/ from undo to my own function commenting the current region or the current line (if no region is selected). When I try something like this:
(global-set-key "\C-/" 'comment-or-uncomment-region-or-line)
I’m getting an error that
error: Invalid modifier in string
I was trying different ways of the keybinding, unfortunately with no success and googling for \C-/ was not very helpful either.
Thank you for your help.
1 Answer