diff options
| author | Blake Romero <blake@blkrom.com> | 2025-10-01 18:25:08 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-10-01 18:25:08 +0100 |
| commit | bb0212fd0edd3b917d5746ab304b2f4aea7177e2 (patch) | |
| tree | 1581e74be3f4aa3dba85f222351f3373fdd862c8 /emacs-config.org | |
| parent | a12860d157d72c376afbe358618885ded70b24f8 (diff) | |
Refactor org-insert-structure-template advice
Diffstat (limited to 'emacs-config.org')
| -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. |
