From b58cf3de62bdc34c5ead9a40fe8ad424ed55da73 Mon Sep 17 00:00:00 2001 From: Earl Hyatt Date: Wed, 13 Nov 2024 21:31:10 -0500 Subject: [PATCH] org.el: Add alias for `org-insert-structure-template' using "block" term * lisp/org.el (org-insert-block-template): Create as an alias of `org-insert-structure-template'. Markup structures like "#+begin_src" and "#+being_quote" can be inserted using the command `org-insert-structure-template'. In much of the documentation, these structures are called "blocks", including the existing documentation for `org-insert-structure-template'. Therefore, add the alias `org-insert-block-template' as a more discoverable name in case a user is familiar with the term "block" but not with the term "structure". --- lisp/org.el | 1 + 1 file changed, 1 insertion(+) diff --git a/lisp/org.el b/lisp/org.el index 1e9057935..a47ee3567 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -9276,6 +9276,7 @@ (defun org--insert-structure-template-unique-keys (keys) (cl-sort menu-keys #'< :key (lambda (elm) (cl-position (cdr elm) keys)))))) +(defalias 'org-insert-block-template #'org-insert-structure-template) (defun org-insert-structure-template (type) "Insert a block structure of the type #+begin_foo/#+end_foo. Select a block from `org-structure-template-alist' then type -- 2.43.0