From bb0212fd0edd3b917d5746ab304b2f4aea7177e2 Mon Sep 17 00:00:00 2001 From: Blake Romero Date: Wed, 1 Oct 2025 18:25:08 +0100 Subject: Refactor org-insert-structure-template advice --- emacs-config.org | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs-config.org b/emacs-config.org index 257fcb4..a9838a3 100644 --- a/emacs-config.org +++ b/emacs-config.org @@ -572,10 +572,10 @@ Add new structure template shortcuts when inserting a block. 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)) + (advice-add 'org-insert-structure-template + :after (lambda (&rest r) + "Edit an Org block after insertion." + (call-interactively 'org-edit-special))) #+end_src Enable supported org babel languages. -- cgit