From: Ihor Radchenko <yantar92@posteo.net>
To: Anthony Carrico <acarrico@memebeam.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-insert-structure-template
Date: Tue, 13 Dec 2022 09:42:06 +0000 [thread overview]
Message-ID: <875yefej2p.fsf@localhost> (raw)
In-Reply-To: <d9222967-5747-bf54-8041-4a8453fe81fc@memebeam.org>
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
Anthony Carrico <acarrico@memebeam.org> writes:
>> The general pattern is C-c C-x <key>. Maybe we can add "C-c C-x ,"?
>
> Thanks, that is probably a good pattern to use. I'll look into
> org-use-extra-keys. This is the only keybinding that regularly bites me
> on the TTY.
C-c C-x , is actually not available (it is bound to timer).
I went with C-c C-x s.
See the attached patch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-lisp-org-keys.el-Provide-terminal-binding-for-org-in.patch --]
[-- Type: text/x-patch, Size: 2095 bytes --]
From 2646a3279689cd9afdf4b5b0e44d29c1fca38d84 Mon Sep 17 00:00:00 2001
Message-Id: <2646a3279689cd9afdf4b5b0e44d29c1fca38d84.1670924473.git.yantar92@posteo.net>
From: Ihor Radchenko <yantar92@posteo.net>
Date: Tue, 13 Dec 2022 12:30:36 +0300
Subject: [PATCH] lisp/org-keys.el: Provide terminal binding for
`org-insert-structure-template'
* lisp/org-keys.el (or): Add alternative terminal binding for
`org-insert-structure-template'. The default binding may not be
available in some terminals.
* doc/org-manual.org (Using Org on a TTY): List the new binding in the
manual.
Reported-by: Anthony Carrico <acarrico@memebeam.org>
Link: https://orgmode.org/list/d9222967-5747-bf54-8041-4a8453fe81fc@memebeam.org
---
doc/org-manual.org | 1 +
lisp/org-keys.el | 1 +
2 files changed, 2 insertions(+)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 0680fb593..1431f8546 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -20481,6 +20481,7 @@ ** Using Org on a TTY
| {{{kbd(S-DOWN)}}} | {{{kbd(C-c DOWN)}}} | | |
| {{{kbd(C-S-LEFT)}}} | {{{kbd(C-c C-x LEFT)}}} | | |
| {{{kbd(C-S-RIGHT)}}} | {{{kbd(C-c C-x RIGHT)}}} | | |
+| {{{kbd(C-c C-\,)}}} | {{{kbd(C-c C-x s)}}} | | |
** Protocols for External Access
:PROPERTIES:
diff --git a/lisp/org-keys.el b/lisp/org-keys.el
index 95f64a3f9..7c6e38e64 100644
--- a/lisp/org-keys.el
+++ b/lisp/org-keys.el
@@ -503,6 +503,7 @@ (when (or org-use-extra-keys (not (display-graphic-p)))
(org-defkey org-mode-map (kbd "C-c C-x c") #'org-table-copy-down)
(org-defkey org-mode-map (kbd "C-c C-x m") #'org-meta-return)
(org-defkey org-mode-map (kbd "C-c C-x M") #'org-insert-todo-heading)
+ (org-defkey org-mode-map (kbd "C-c C-x s") #'org-insert-structure-template)
(org-defkey org-mode-map (kbd "C-c C-x RET") #'org-meta-return)
(org-defkey org-mode-map (kbd "ESC RET") #'org-meta-return)
(org-defkey org-mode-map (kbd "ESC <left>") #'org-metaleft)
--
2.38.1
[-- Attachment #3: Type: text/plain, Size: 225 bytes --]
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
next prev parent reply other threads:[~2022-12-13 9:42 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-12-12 13:46 org-insert-structure-template Anthony Carrico
2022-12-12 13:50 ` org-insert-structure-template Anthony Carrico
2022-12-12 14:20 ` org-insert-structure-template Alain.Cochard
2022-12-12 14:41 ` org-insert-structure-template Anthony Carrico
2022-12-12 14:56 ` org-insert-structure-template Alain.Cochard
2022-12-12 20:01 ` org-insert-structure-template Tim Cross
2022-12-12 14:04 ` org-insert-structure-template Ihor Radchenko
2022-12-12 14:35 ` org-insert-structure-template Anthony Carrico
2022-12-13 9:42 ` Ihor Radchenko [this message]
2022-12-29 14:28 ` org-insert-structure-template Ihor Radchenko
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875yefej2p.fsf@localhost \
--to=yantar92@posteo.net \
--cc=acarrico@memebeam.org \
--cc=emacs-orgmode@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.