Skip to content

Org blocks - source code and moreλ︎

Block are used to highlight source code and other areas of text that should be highlight differently.

, b d calls (org-babel-demarcate-block) opens a list of programming languages to select from, pasting an org source code block with the chosen language.

Spacemacs Org mode - babel demarcate block language list

When choosing clojure as the language, a source code block is added with the label clojure to indicate the language.

#+BEGIN_SRC clojure

, i b displays the currently available templates to use as blocks (org-insert-structure-template). These templates provide a wider range than only the source code block.

Spacemacs Org mode - structure template menu