I'm trying to reset the binding for "C-x C-c". Specifically, I want to rebind it to a function that asks me if I really want to quit (I just fat finger it way too much). I've done this before under Linux with no issues. Under Mac OS X, when I evaluate the expression
(global-unset-key “\C-x\C-c”)
I get:
eval-buffer: Symbol's value as variable is void: “C-xC-c”
So, why is it void? The command does exit Emacs, so it can't be void
. I must not be referring to "C-x C-c" correctly. But what is the correct way?
I get the same problem when using global-set-key
to bind the command sequence to a new function.
I'm using GNU Emacs 23.0.0 from MacPorts and Mac OS X 10.5 (Leopard).