emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Emanuel Berg <moasen@zoho.com>
To: help-gnu-emacs@gnu.org
Cc: emacs-orgmode@gnu.org
Subject: Re: keybindings again...
Date: Fri, 30 Jun 2017 23:55:09 +0200	[thread overview]
Message-ID: <86bmp56szm.fsf@zoho.com> (raw)
In-Reply-To: 3BA1EFA7-056C-4DD6-8D53-85088F901263@gmail.com

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

  parent reply	other threads:[~2017-06-30 21:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-30  2:42 keybindings again Jean-Christophe Helary
2017-06-30  2:51 ` Kaushal Modi
2017-06-30  5:10   ` Jean-Christophe Helary
2017-06-30  5:27     ` Nicolas Goaziou
2017-06-30  7:23       ` Jean-Christophe Helary
2017-06-30 22:08         ` Emanuel Berg
2017-06-30  7:56       ` Jean-Christophe Helary
2017-06-30  8:14         ` Nicolas Goaziou
2017-06-30  8:40           ` Jean-Christophe Helary
2017-06-30  9:56             ` Michael Ax
2017-06-30  5:33     ` Kaushal Modi
2017-06-30  6:17     ` Eli Zaretskii
2017-06-30  7:28       ` Jean-Christophe Helary
2017-06-30  6:22     ` Yuri Khan
2017-06-30 21:55     ` Emanuel Berg [this message]
2017-07-01  0:00       ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86bmp56szm.fsf@zoho.com \
    --to=moasen@zoho.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).