From ef7c0b8775c8bdfe3843efca58d96cc87d4e7d1a Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Thu, 10 Jul 2025 09:56:02 +0100 Subject: Add advice to enter structure template on insert --- emacs-config.org | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'emacs-config.org') diff --git a/emacs-config.org b/emacs-config.org index f7e36ba..8a9b5cd 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -258,6 +258,14 @@ Add new structure template shortcuts when inserting a block. (cl-pushnew '("se" . "src elisp") org-structure-template-alist) #+end_src +Add advice to automatically open an edit buffer when inserting a structure template. +#+begin_src elisp + (defadvice org-insert-structure-template + (after edit-src activate compile) + "Auto enter an edit buffer when inserted an Org block." + (call-interactively 'org-edit-special)) +#+end_src + Enable supported org babel languages. #+begin_src elisp (dolist (lang '(shell C latex plantuml)) -- cgit