From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Andersson Newsgroups: gmane.emacs.help Subject: Re: hyper & super in Emacs 21 in terminal? Date: 24 Aug 2003 19:18:42 +0200 Organization: Symsoft AB, KISTA, SWEDEN Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1061746603 16229 80.91.224.253 (24 Aug 2003 17:36:43 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 24 Aug 2003 17:36:43 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Aug 24 19:36:41 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19qynB-0006h7-00 for ; Sun, 24 Aug 2003 19:36:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19qymk-0000V2-9o for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2003 13:36:14 -0400 Original-Newsgroups: gnu.emacs.help Original-Sender: david@symsoft(REMOVE_THIS).se Original-Lines: 23 X-Newsreader: Gnus v5.7/Emacs 20.7 X-Original-NNTP-Posting-Host: marilyn.symsoft.se X-Original-Trace: 24 Aug 2003 19:18:41 +0200, marilyn.symsoft.se Original-X-Complaints-To: abuse@songnetworks.se Original-NNTP-Posting-Host: news.wineasy.se X-Original-NNTP-Posting-Host: news.wineasy.se Original-X-Trace: wineasy!newsfeed.wineasy.se!news.sto.telegate.se 1061745522 213.131.157.161 (24 Aug 2003 19:18:42 +0200) Original-X-Complaints-To: abuse@songnetworks.se Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.algonet.se!algonet!newsfeed1!bredband!newsfeed.bahnhof.se!wineasy!newsfeed.wineasy.se!news.sto.telegate.se!news.wineasy.se!news.songnetworks.se!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:116109 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 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 Xref: main.gmane.org gmane.emacs.help:12028 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12028 Joe Corneli writes: > > (global-set-key [(hyper g)] 'goto-line) > > Cool, thanks. ... > > Can you or anyone perhaps suggest a more economical "binding" than the > default: > > (define-key function-key-map [?\C-x ?@ ?h] 'event-apply-hyper-modifier) > > I'm looking for something that has just one keypress associated with it. > Like F8 or something like that - but I don't know the syntax for > entering F8 as an ASCII keysequence recognizable to Emacs. Type C-q f8 in the *scratch* buffer. That should insert the ESC sequence, if it is a --no-window emacs. Replace ^[ with \e. For example, I got ^[[19~ and wrote to test: (define-key function-key-map "\e[19~" 'event-apply-hyper-modifier) (global-set-key [(hyper g)] 'goto-line)