From mboxrd@z Thu Jan 1 00:00:00 1970 From: psycho_punch Subject: Re: babel setup Date: Mon, 9 Jun 2014 23:03:20 +0800 Message-ID: References: <874mzu9lr7.fsf@gmail.com> Reply-To: psychopunch.me@gmail.com Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e0129478403e80204fb688332 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu16Y-0005S5-6D for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:03:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wu16X-0007ty-0k for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:03:22 -0400 Received: from mail-ig0-x234.google.com ([2607:f8b0:4001:c05::234]:38137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wu16W-0007tZ-LS for emacs-orgmode@gnu.org; Mon, 09 Jun 2014 11:03:20 -0400 Received: by mail-ig0-f180.google.com with SMTP id h18so438348igc.7 for ; Mon, 09 Jun 2014 08:03:20 -0700 (PDT) In-Reply-To: <874mzu9lr7.fsf@gmail.com> 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: emacs-orgmode@gnu.org --089e0129478403e80204fb688332 Content-Type: text/plain; charset=UTF-8 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. > > > --089e0129478403e80204fb688332 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Yes, I had the same problem earlier (see the thread on req= uired '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 begi= nning 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 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 <gshy2014@= 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.



--089e0129478403e80204fb688332--