emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: C-c C-, in a terminal?
Date: Wed, 29 Dec 2021 10:58:18 +1100	[thread overview]
Message-ID: <87tues1afe.fsf@gmail.com> (raw)
In-Reply-To: <sm0pmphkufs.fsf@lakka.kapsi.fi>


Anssi Saari <as@sci.fi> writes:

> Hi all, while it's not an ORG mode question exactly, I have a problem
> with org-insert-structure-template and it's default shortcut, C-c C-, in
> terminals.
>
> As C-, isn't usually a control character in a terminal, terminals send
> just the comma if I hit C-,. Some terminals (at least wsltty) do send
> some kind of control sequence but I don't know if mapping other
> terminals to do the same (Konsole and urxvt at least) and changing the
> keys for Emacs makes sense. I'd have to do it for every terminal I ever
> use.
>
> Alternatively, any suggestions for a more terminal friendly key
> combination for org-insert-structure-template in Emacs?

It is almost impossible to suggest an alternative key binding because
there are just too many variables involved. What you can use will depend
on what window manager you use and the key shortcuts it uses (which will
'steal' keys before Emacs get to see them) and on the terminal emulator
and the remote access protocol (i.e. ssh, telnet, tmux, screen etc) you
use. Then there is differences depending on what Emacs packages you are
using and what (if any) key bindings you have already defined and
whether they are global or local definitions etc.

My suggestion would be to use something like the free-keys (available in
melpa) package to identify what key bindings are available when in an
org buffer and select one of those. It may also be worthwhile
considering using something like hydra. You could define an org specific
hydra and associate all your preferred bindings to that hydra. Org can
be particularly challenging because it already has some complex key
bindings, so avoiding unexpected side effects when adding/changing
bindings can be a challenge. 



  parent reply	other threads:[~2021-12-29  1:14 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-28  8:25 Anssi Saari
2021-12-28 11:10 ` Vincent Breton
2021-12-28 23:58 ` Tim Cross [this message]
2021-12-29  6:24   ` Samuel Banya
2021-12-29 16:48 ` Max Nikulin

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=87tues1afe.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: C-c C-, in a terminal?' \
    /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

Code repositories for project(s) associated with this 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).