Re: Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Loris Bennett
Hi Steve, Thanks for that - much more compact. I didn't know about the `,-construction. Cheers, Loris Steve Downey writes: > My workaround for dealing with different org versions on different machines: > > (org-babel-do-load-languages >'org-babel-load-languages >`((perl . t)

Re: Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Steve Downey
My workaround for dealing with different org versions on different machines: > (org-babel-do-load-languages > 'org-babel-load-languages > `((perl . t) > (ruby . t) > ,(if (version< org-version "9.0") > '(sh . t) >'(shell . t)) > (python

Re: Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Loris Bennett
Loris Bennett writes: > Hi, > > I want to use one init.el across multiple machines with different > versions of Emacs and Org. Since 'ob-sh.el' changed to 'ob-shell', I > need to do either > > (org-babel-do-load-languages >'org-babel-load-languages >'((org . t) > (emacs-lisp . t)

Conditionally loading ob-sh or ob-shell

2020-04-21 Thread Loris Bennett
Hi, I want to use one init.el across multiple machines with different versions of Emacs and Org. Since 'ob-sh.el' changed to 'ob-shell', I need to do either (org-babel-do-load-languages 'org-babel-load-languages '((org . t) (emacs-lisp . t) (shell . t) (perl . t) (R .