Re: [O] babel setup

2014-06-09 Thread Shiyuan
For me, without the setup step, python/latex doesn't work by default. `C-c C-c` gives me the error : org-babel-execute-src-block: No org-babel-execute function for latex! But with the setup step, `C-c C-c` works now. On Mon, Jun 9, 2014 at 8:03 AM, psycho_punch wrote: > Yes, I had the same pr

Re: [O] babel setup

2014-06-09 Thread Shiyuan
Yes. Putting (package-initialize) immediately before the (org-babel-do-load-languages ...) solves the problem. On Mon, Jun 9, 2014 at 7:54 AM, Jorge A. Alfaro-Murillo < jorge.a.alf...@gmail.com> wrote: > Shiyuan writes: > > > Hi all, > > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > >

Re: [O] babel setup

2014-06-09 Thread Shiyuan
No, I don't have anything else in my .emacs. Thanks for the suggestion for subject line. Next time, I will write more meaningful(and longer) subject line. On Mon, Jun 9, 2014 at 6:48 AM, Omid wrote: > What else do you have in your .emacs related to Org? > > (BTW, it would be much better if y

Re: [O] babel setup

2014-06-09 Thread psycho_punch
Yes, I had the same problem earlier (see the thread on required 'ox-publish). Here's what I did: First, I noticed that the packages get loaded only after initialization, so I put my org-related initialization script in the after-init-hook. Then after other people here told me about (package-initia

Re: [O] babel setup

2014-06-09 Thread Jorge A. Alfaro-Murillo
Shiyuan writes: > Hi all, > I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) > I followed this instruction > http://orgmode.org/worg/org-contrib/babel/languages.html#configure > > and added the following to my .emacs file. > > (org-babel-do-load-languages > 'org-babel-load-languages > '((py

Re: [O] babel setup

2014-06-09 Thread Omid
What else do you have in your .emacs related to Org? (BTW, it would be much better if you could write a more detailed subject line than "babel setup" like "Using org-babel-do-load-languages causes Org mode to switch to older version" so that the right people on the list can more easily prioritize

Re: [O] babel setup

2014-06-09 Thread Jacob Gerlach
I think this has to do with autoload, but I am not an emacs or org expert. Try making sure that (package-initialize) comes before any org functions in your .emacs (from the answer here

[O] babel setup

2014-06-08 Thread Shiyuan
Hi all, I am using Emacs 24.3.9 + org-mode 8.2.6(from ELPA) I followed this instruction http://orgmode.org/worg/org-contrib/babel/languages.html#configure and added the following to my .emacs file. (org-babel-do-load-languages 'org-babel-load-languages '((python . t) (emacs-li