[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Make Super key work in console
From: |
Jean Louis |
Subject: |
Re: Make Super key work in console |
Date: |
Mon, 15 Feb 2021 14:10:09 +0300 |
User-agent: |
Mutt/2.0 (3d08634) (2020-11-07) |
* Emanuel Berg via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> [2021-02-14 22:39]:
> Jean Louis:
>
> > Now is it possible to define Super-LETTER as prefix?
>
> ;; Super-Jean's key
> (define-key input-decode-map [?\u1004] [super-key])
>
> (define-prefix-command 'super-jean)
>
> (global-set-key [super-key] 'super-jean)
>
> (global-set-key
> [super-key ?\l]
> (lambda ()
> (interactive)
> (message "Manny's skills are uncanny")) )
OK that almost works. I say almost.
First it started working so I can get the uncanny skills. But then I have tried
to evaluated:
(global-set-key [super-key ?\a] 'tetris)
And that one does not work.
I have also discovered that it does not act as true modifier, it acts rather as
a key after key. So I cannot press Super and hold it pressed to invoke other
key. In fact I have to press Super and then release it to press the other key
for the function to start working.
Do you know why I cannot invoke tetris? Not that I need tetris, I would like to
use my business management in console too by using the Super key. Of course I
can replace the prefix with something else, but I still explore that
possibility of using Super in the console.
It would also release or liberate many keys for Emacs in console. You are doing
good progress.
Now:
- why tetris does not work?
- can we make it a true modifier, even if we replace its underlying meaning to
something else?
Then we can invoke a function that can detect if Emacs is running in console
and that function can replace the prefix and modify it to something similar as
you have proposed.
In GUI there would be no need for modification.
Jean
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), (continued)
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Emanuel Berg, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Jean Louis, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Yuri Khan, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Jean Louis, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Emanuel Berg, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Jean Louis, 2021/02/14
- Re: console key tutorial, revised (was: Re: Make Super key work in console - was Re: math (was: Re: not good proposal: "C-z <letter>" reserved for users)), Emanuel Berg, 2021/02/14
- Snippet for website inquiries by using one click on the email address, Jean Louis, 2021/02/14
- Re: Snippet for website inquiries by using one click on the email address, Emanuel Berg, 2021/02/14
- Re: Make Super key work in console, Emanuel Berg, 2021/02/14
- Re: Make Super key work in console,
Jean Louis <=
- Re: Make Super key work in console, Emanuel Berg, 2021/02/15
- Re: Make Super key work in console, Yuri Khan, 2021/02/15
- Re: Make Super key work in console, Emanuel Berg, 2021/02/15
- Re: Make Super key work in console, Jean Louis, 2021/02/16
- Re: Make Super key work in console, Yuri Khan, 2021/02/16
- Re: Make Super key work in console, Jean Louis, 2021/02/16
- Re: Make Super key work in console, Jean Louis, 2021/02/20
- Re: Make Super key work in console, Yuri Khan, 2021/02/20
- Re: Make Super key work in console, Stefan Monnier, 2021/02/20
- Re: Make Super key work in console, Eli Zaretskii, 2021/02/20