help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: windows key as super


From: Kevin Rodgers
Subject: Re: windows key as super
Date: Thu, 19 Nov 2009 20:15:17 -0700
User-agent: Thunderbird 2.0.0.23 (Macintosh/20090812)

LanX wrote:
Hi

On 18 Nov., 12:46, Giovanni Gigante <g...@cidoc.iuav.it> wrote:
Then I tried in emacs:
(global-set-key (kbd "s-s") 'save-buffer)

Hm works for me (without VNC)

Keybindings are a science of it's own, I remember there was a huge
tutorial with dozens of pages about it somewhere in the internet, but
I can't find it anymore.

anyhow there is a trick I use, if just getting it done is more
important than  portability.

Try to bind interactively and investigate the generated lispcode with
"redo"

M-x local-set-key RET s-s RET save-buffer

C-x ESC ESC

What I get is: (local-set-key (quote [8388723]) (quote save-buffer))
which I can include (simplified) as

(local-set-key '[8388723] 'save-buffer)

in my .emacs.

(local-set-key (kbd "s-s") 'save-buffer)

--
Kevin Rodgers
Denver, Colorado, USA





reply via email to

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