Rasmus: Thanks Jorge: Yes probably
On Tue, Feb 17, 2015 at 2:09 PM, Jorge A. Alfaro-Murillo <jorge.alfaro-muri...@yale.edu> wrote: > Hi, Grant. > > Grant Rettke writes: > >> It would be simpler to say "this whole document will be R source blocks, >> unless I specify other wise". I looked at [the spec]. I wanted to obtain >> this behavior. I couldn't figure out how. Is it possible? > > > The problem is that if there is nothing after #+BEGIN_SRC, then > org-babel-get-src-block-info returns nil. 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. But isn't it easier to set > org-structure-template-alist as a local buffer variable, say in the first > line of your file something like: > > #+BEGIN_EXAMPLE > # -*- org-structure-template-alist: '(("s" "#+BEGIN_SRC > python\n?\n#+END_SRC")) -*- > #+END_EXAMPLE > > Then <s followed by TAB, would always get you python for that file, for > example. > > Best, > > -- > Jorge. > > -- Grant Rettke g...@wisdomandwonder.com | http://www.wisdomandwonder.com/ “Wisdom begins in wonder.” --Socrates ((λ (x) (x x)) (λ (x) (x x))) “Life has become immeasurably better since I have been forced to stop taking it seriously.” --Thompson