diff options
| author | Blake Romero <blake@blkrom.com> | 2025-07-10 09:56:02 +0100 |
|---|---|---|
| committer | Blake Romero <blake@blkrom.com> | 2025-07-10 09:56:02 +0100 |
| commit | ef7c0b8775c8bdfe3843efca58d96cc87d4e7d1a (patch) | |
| tree | 098cddedeebe13043b9c55d63e5b7a95f5baf283 /emacs-config.org | |
| parent | dbb4a034a0fe2d9dbd36ca98e1286eb2b99ae324 (diff) | |
Add advice to enter structure template on insert
Diffstat (limited to 'emacs-config.org')
| -rw-r--r-- | emacs-config.org | 8 |
1 files changed, 8 insertions, 0 deletions
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)) |
