diff options
| -rw-r--r-- | emacs-config.org | 8 |
1 files 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. |
