From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Seberino Newsgroups: gmane.emacs.help Subject: How bind "Super" key *all by itself* to a function? Date: Sun, 18 Jan 2015 22:57:55 -0800 (PST) Message-ID: <43af9344-5981-4250-a825-47e119c1633e@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1421650822 14984 80.91.229.3 (19 Jan 2015 07:00:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 19 Jan 2015 07:00:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 19 08:00:22 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YD6Jx-00041a-El for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 08:00:21 +0100 Original-Received: from localhost ([::1]:35872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YD6Jx-0001sm-0l for geh-help-gnu-emacs@m.gmane.org; Mon, 19 Jan 2015 02:00:21 -0500 X-Received: by 10.182.191.65 with SMTP id gw1mr22382676obc.40.1421650675648; Sun, 18 Jan 2015 22:57:55 -0800 (PST) X-Received: by 10.182.91.116 with SMTP id cd20mr2398obb.33.1421650675526; Sun, 18 Jan 2015 22:57:55 -0800 (PST) Original-Path: usenet.stanford.edu!r10no1163385igi.0!news-out.google.com!db6ni2591igc.0!nntp.google.com!r10no633928igi.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=74.193.13.167; posting-account=VkuUtQkAAADKqMjRUmZTNs7a8uCSNNy2 Original-NNTP-Posting-Host: 74.193.13.167 User-Agent: G2/1.0 Injection-Date: Mon, 19 Jan 2015 06:57:55 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:209871 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:102150 Archived-At: 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