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

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

Re: hyper & super in Emacs 21 in terminal?


From: David Andersson
Subject: Re: hyper & super in Emacs 21 in terminal?
Date: 24 Aug 2003 19:18:42 +0200

Joe Corneli <jcorneli@math.utexas.edu> 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)


reply via email to

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