Is there a way to define a default language for org-mode code blocks in the docuement header? Usually, within one org document, I only use one programming language, so it's getting tiresome to always write
#+BEGIN_SRC python
[...]
#+END_SRC
It would be nice to be able to do something like
#+PROPERTY: header-args :session *mysession* :tangle yes :results silent :language python
[...]
#+BEGIN_SRC
[...]
#+END_SRC
Is there any way to achieve this?
<s
followed by theTAB
key will auto expand into the source code block structure and then you simply need to typepython
, go to the next line and fill in the code.#+BEGIN_SRC python
in the.org
file) is Probably you would have to modify org-babel-get-src-block-info so that it returns a default when there is nothing after #+BEGIN_SRC