From 2646a3279689cd9afdf4b5b0e44d29c1fca38d84 Mon Sep 17 00:00:00 2001 Message-Id: <2646a3279689cd9afdf4b5b0e44d29c1fca38d84.1670924473.git.yantar92@posteo.net> From: Ihor Radchenko 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 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 ") #'org-metaleft) -- 2.38.1