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

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

Re: keybindings again...


From: Emanuel Berg
Subject: Re: keybindings again...
Date: Fri, 30 Jun 2017 23:55:09 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux)

Jean-Christophe Helary wrote:

> Do you mean that Shift is not recognized as
> a modified key by the terminal ?

Of course it is...

M-S-RET can be done with the old workaround.
Full tutorial here [1].

But in essence, in

    /etc/console-setup/remap.inc

put

    # make M-S-RET work
    alt shift keycode 28 = U+1000

Then invoke this function:

    # first do 'sudo chmod +s /bin/loadkeys'
    lkeys () {
        loadkeys -q -c -s /etc/console-setup/remap.inc
    }

Then in an Emacs init file:

    ;; M-S-RET
    (define-key input-decode-map [?\u1000] [M-S-RET-a])
    (global-set-key [M-S-RET-a] (lambda () (interactive) (message "M-S-RET")))

(You can't call it [M-S-RET] because then Emacs
 tells you it doesn't work :))

> It would be nice if the org manual mentioned
> that too, and give alternative keybindings
> for use in the terminal because that's
> extremely confusing.

People typically don't use the terminal.
Only the bravest do it. So it is not an area
where people put their educational brains to
work. Actually it is the opposite. When they
propose making the ttys better they put the
suggestions down because they don't want people
to use it. It should only be there as a safe
bet when everything else fail.

But to the brave it doesn't matter because you
can put tmux on top of it (or screen, no
personal experience with that tho),
problem solved.

But there are use cases even for people who
aren't that brave as to use it every day, for
example when they ssh to some remote machine to
do edits there...

-- 
underground experts united
http://user.it.uu.se/~embe8573




reply via email to

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