emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Shiyuan <gshy2014@gmail.com>
To: psychopunch.me@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: babel setup
Date: Mon, 9 Jun 2014 11:44:31 -0700	[thread overview]
Message-ID: <CAOm4EMtqYpgwm6xAUXvjeVDN_hBXFzdd6raYiHxgPQTC6zBdWw@mail.gmail.com> (raw)
In-Reply-To: <CADWK+fdWv2DSoJV_e0shtJRxOJ1ptdi_m7GZ_H8PU_yuKwAL-w@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1815 bytes --]

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 <psychopunchme@gmail.com>
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 <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/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.
>>
>>
>>
>

[-- Attachment #2: Type: text/html, Size: 2827 bytes --]

  reply	other threads:[~2014-06-09 18:44 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-09  5:18 babel setup Shiyuan
2014-06-09 10:00 ` Jacob Gerlach
2014-06-09 13:48 ` Omid
2014-06-09 18:39   ` Shiyuan
2014-06-09 14:54 ` Jorge A. Alfaro-Murillo
2014-06-09 15:03   ` psycho_punch
2014-06-09 18:44     ` Shiyuan [this message]
2014-06-09 18:40   ` Shiyuan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAOm4EMtqYpgwm6xAUXvjeVDN_hBXFzdd6raYiHxgPQTC6zBdWw@mail.gmail.com \
    --to=gshy2014@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=psychopunch.me@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).