[OS X Emacs] Binding the command key in current Emacs.app

Alex Payne al3x at al3x.net
Fri Oct 31 16:41:39 EDT 2008

I'm experimenting with a custom-compiled (--with-ns) version of
Emacs.app from the most recent GNU Emacs trunk/head.  I'd like to bind
several key combinations that involve the command/Apple key, but for
all my Googling and playing around, I can't seem to do it.

I've tried setting mac-command-key-is-meta to nil, and I've tried a
number of different versions of global-set-key with or without key
helper functions.  When I try my test keystroke, the only output I get
from Emacs.app is that "s-} is undefined", but trying to bind "s" or
"\s" or "\S", etc., has no effect.

Any suggestions on how to bind the command key in a recent Emacs.app build?

Alex Payne

More information about the MacOSX-Emacs mailing list