From: Anssi Saari <email@example.com> To: firstname.lastname@example.org Subject: Re: Second Ctl in keychord not detected Date: Wed, 19 Jan 2022 15:51:04 +0200 [thread overview] Message-ID: <email@example.com> (raw) In-Reply-To: <firstname.lastname@example.org> "Loris Bennett" <email@example.com> writes: > installed. I am using tmux and want to run > > org-insert-structure-template > > which is bound to > > C-c C-, > > When I type that, however, the function > > org-priority > > is executed instead, which is bound to > > C-c , > Does anyone know what is happening to the second Ctl and how the problem > can be fixed? Yes. I actually asked about this recently. The problem is that in a terminal, C-, doesn't exist. Hitting C-, gets you just a comma. In other words, there is no control character in existence that would be sent in a terminal when the user hits C-,. I asked for suggestions for remapping org-insert-structure-template to some other keys and got a suggestion on how to find what key combinations are free. Also a suggestion to use older way to get the template (require 'org-tempo and use < s TAB). Problem with that old way is that it doesn't wrap region in the +BEGIN_SRC/+END_SRC tags, it just dumbly inserts them. I typically start writing code in an ORG document and *then* realize it should be inside those tags so C-c C-, would be perfect. Just not in a terminal. It might be worth reporting this key binding as a bug since it doesn't work in a terminal. Other than mapping org-insert-structure-template to some other key combination or using <sTAB, if your terminal allows it, map C-, in terminal-specific configuration to send something with C-, and then configure emacs to match. Painful if you use different terminals and I know at least one which uses C-, as a shortcut for settings. Come to think of it, maybe you could remap keys in tmux if you always use tmux, then it doesn't matter which terminal you use.
next prev parent reply other threads:[~2022-01-19 14:33 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-01-19 12:08 Loris Bennett 2022-01-19 12:48 ` Ihor Radchenko 2022-01-19 13:42 ` Loris Bennett 2022-01-19 14:20 ` Ihor Radchenko 2022-01-19 14:49 ` Loris Bennett 2022-01-20 2:11 ` Extend the existing alternative set of key bindings for terminals (was: Second Ctl in keychord not detected) Ihor Radchenko 2022-01-21 5:26 ` Tim Cross 2022-01-24 14:16 ` Ihor Radchenko 2022-01-25 8:51 ` Tim Cross 2022-01-21 8:03 ` Extend the existing alternative set of key bindings for terminals Loris Bennett 2022-01-23 6:58 ` Ihor Radchenko 2022-01-19 13:51 ` Anssi Saari [this message] 2022-01-19 14:04 ` Second Ctl in keychord not detected tomas
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 \ --firstname.lastname@example.org \ --email@example.com \ --firstname.lastname@example.org \ --subject='Re: Second Ctl in keychord not detected' \ /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).