[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: org-insert-structure-template
From: |
Ihor Radchenko |
Subject: |
Re: org-insert-structure-template |
Date: |
Tue, 13 Dec 2022 09:42:06 +0000 |
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.
>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: d9222967-5747-bf54-8041-4a8453fe81fc@memebeam.org">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
--
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>