I've searched the manual and I didn't find anything useful. It's annoying to write every time the tags to surround the code, and I'm surprised that org doesn't provide a macro to avoid a so boring task.

Any clue? Thanks in advance.


1 Answer 1


I think you are looking for "<s" and hitting [Tab].

These are called "Easy Templates", and the syntax is a < followed by the template selector. [Tab] expands them.

Here is a list of other templates you can quickly insert like this.

2019 update: "Easy Templates" are now "Structure Templates", and expansion with < is no longer default behavior, though you can turn it can turn it on by running M-x customize-variable on org-modules and enabling org-tempo, or you can use the new default keybinding which is bound to C-c C-,.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.