From: Chris Seberino <cseberino@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How bind "Super" key *all by itself* to a function?
Date: Sun, 18 Jan 2015 22:57:55 -0800 (PST) [thread overview]
Message-ID: <43af9344-5981-4250-a825-47e119c1633e@googlegroups.com> (raw)
I'm on a Linux machine and would like to bind
the "Super" key all by itself to a function of my choosing.
This works for Super + "b":
(global-set-key (kbd "s-b") 'backward-word)
(Source: http://ergoemacs.org/emacs/emacs_hyper_super_keys.html)
However, how would you do something similar for ONLY the Super key
ALL BY ITSELF???
I tried (global-set-key (kbd "s") 'backward-word)
but then all I'm doing is rebinding the literal "s" which isn't my intention.
(I want to bind another function besides backward-word but that's just a
hypothetical example.)
(I asked a similar question on a list regarding the converting the Windows key to a meta key which led to special problems I'm hoping to avoid now by NOT trying to make Super a meta key.)
cs
next reply other threads:[~2015-01-19 6:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 6:57 Chris Seberino [this message]
2015-01-19 7:16 ` How bind "Super" key *all by itself* to a function? Yuri Khan
[not found] ` <mailman.18124.1421651779.1147.help-gnu-emacs@gnu.org>
2015-01-19 7:35 ` Rusi
2015-01-19 8:25 ` Yuri Khan
2015-01-19 9:08 ` Yuri Khan
[not found] ` <mailman.18131.1421658484.1147.help-gnu-emacs@gnu.org>
2015-01-19 13:54 ` Rusi
2015-01-19 14:33 ` Rusi
2015-01-19 15:32 ` Yuri Khan
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=43af9344-5981-4250-a825-47e119c1633e@googlegroups.com \
--to=cseberino@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.