* Macintosh Command Key
@ 2005-04-01 15:41 Jay Cotton
0 siblings, 0 replies; 2+ messages in thread
From: Jay Cotton @ 2005-04-01 15:41 UTC (permalink / raw)
(Please excuse the duplicate of this message that I sent from the wrong
email address.)
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.)
Thanks,
Jay
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Macintosh Command Key
[not found] <mailman.904.1112371217.28103.help-gnu-emacs@gnu.org>
@ 2005-04-01 16:29 ` rgb
0 siblings, 0 replies; 2+ messages in thread
From: rgb @ 2005-04-01 16:29 UTC (permalink / raw)
> 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))))
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-04-01 16:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.904.1112371217.28103.help-gnu-emacs@gnu.org>
2005-04-01 16:29 ` Macintosh Command Key rgb
2005-04-01 15:41 Jay Cotton
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.