[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Macintosh Command Key

From: rgb
Subject: Re: Macintosh Command Key
Date: 1 Apr 2005 08:29:55 -0800
User-agent: G2/0.2

> 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
> to add a global-set-key function call for the command key in my
> 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))))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]