> I am using a version of emacs for OS X. Does anybody know how to > reference the Macintosh Command key (Apple key) in elisp? (I would like > to add a global-set-key function call for the command key in my .emacs > file.) > In general, you can type C-h c followed by any key and see a message about what keystroke you just typed (from Emacs point of view).
I just wrote this the other day. (defun insert-sequence-key (key) "Inserts a keystroke suitable for use in fcns like global-set-key" (interactive "kInseret key chord: ") (insert (format "(kbd \"%s\")" (key-description key)))) _______________________________________________ Help-gnu-emacs mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
