all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: windows key as super
Date: Thu, 19 Nov 2009 20:15:17 -0700	[thread overview]
Message-ID: <he51jt$v98$2@ger.gmane.org> (raw)
In-Reply-To: <31a7b508-60e3-4f50-880e-edeec5277347@o10g2000yqa.googlegroups.com>

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





  parent reply	other threads:[~2009-11-20  3:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-18 11:46 windows key as super Giovanni Gigante
2009-11-19 19:16 ` LanX
2009-11-19 19:22   ` LanX
2009-11-20  3:08   ` Stefan Monnier
2009-11-20 10:37     ` Kevin Rodgers
     [not found]     ` <mailman.11146.1258713615.2239.help-gnu-emacs@gnu.org>
2009-11-20 14:55       ` Stefan Monnier
2009-11-20  3:15   ` Kevin Rodgers [this message]
2009-11-20 17:33   ` Giovanni Gigante
2009-11-20 19:04     ` Peter Dyballa
     [not found]     ` <mailman.11187.1258743907.2239.help-gnu-emacs@gnu.org>
2009-11-21 16:57       ` Giovanni Gigante

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='he51jt$v98$2@ger.gmane.org' \
    --to=kevin.d.rodgers@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.