From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: babel setup Date: Mon, 9 Jun 2014 11:44:31 -0700 Message-ID: References: <874mzu9lr7.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec501629b08cd3404fb6b9a39 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57685) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu4Yb-0001Bq-74 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 14:44:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu4YZ-0002yM-Ui for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 14:44:33 -0400 Received: from mail-vc0-x22a.google.com ([2607:f8b0:400c:c03::22a]:59642) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu4YZ-0002y2-O8 for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 14:44:31 -0400 Received: by mail-vc0-f170.google.com with SMTP id hy10so2409284vcb.15 for ; Mon, 09 Jun 2014 11:44:31 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: psychopunch.me@gmail.com Cc: emacs-orgmode@gnu.org --bcaec501629b08cd3404fb6b9a39 Content-Type: text/plain; charset=UTF-8 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 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-initialize), I just placed > it somewhere in the beginning of my emacs initialization script, and it > worked as well. > > I also removed a similar script for setting up babel since I noticed my > installation works without it anyway. I think those languages are supported > by default. > > > > On Mon, Jun 9, 2014 at 10:54 PM, Jorge A. Alfaro-Murillo < > jorge.a.alfaro@gmail.com> wrote: > >> 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 >> > '((python . t) >> > (emacs-lisp . t))) >> > >> > After that, org-mode mysteriously switched back to the old version >> > 7.9. Another problem is that export command C-c C-e no longer works >> > and generates error: Symbol's function definition is void: >> > org-defvaralias. Is there any step I missed? Thanks. >> > >> > Shiyuan >> >> Hi Shiyuan, >> >> Have you tried to put (package-initialize) early (say first line) in >> your .emacs? >> >> Best, >> >> Jorge. >> >> >> > --bcaec501629b08cd3404fb6b9a39 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
For me, without the setup step, python/latex doesn't w= ork by default. `C-c C-c` =C2=A0gives me the error :=C2=A0
org-babel-ex= ecute-src-block: No org-babel-execute function for latex!
But with the setup step, `C-c C-c` works now.=C2=A0


On Mon, Jun 9, 2014 at = 8:03 AM, psycho_punch <psychopunchme@gmail.com> wrote:=
Yes, I had the same problem= earlier (see the thread on required 'ox-publish). Here's what I di= d:

First, I noticed that the packages get loaded only after initialization= , so I put my org-related initialization script in the after-init-hook. The= n after other people here told me about (package-initialize), I just placed= it somewhere in the beginning of my emacs initialization script, and it wo= rked as well.

I also removed a similar script for setting up babel since I noticed my= installation works without it anyway. I think those languages are supporte= d by default.



On Mon, Jun 9, 2014 at 10:54 PM, Jorge A. Alfaro-Murillo = <jorge.a.a= lfaro@gmail.com> wrote:
Shiyuan <gs= hy2014@gmail.com> 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/langua= ges.html#configure
>
> and added the following to my .emacs file.
>
> (org-babel-do-load-languages
> 'org-babel-load-languages
> '((python . t)
> (emacs-lisp . t)))
>
> After that, org-mode mysteriously switched back to the old version
> 7.9. Another problem is that export command C-c C-e no longer works > and generates error: Symbol's function definition is void:
> org-defvaralias. Is there any step I missed? Thanks.
>
> Shiyuan

Hi Shiyuan,

Have you tried to put (package-initialize) early (say first line) in
your .emacs?

Best,

Jorge.




--bcaec501629b08cd3404fb6b9a39--