From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Tangling
Date: Sun, 11 Apr 2010 14:22:37 +0200 [thread overview]
Message-ID: <m1zl1atbzm.fsf@gmail.com> (raw)
In-Reply-To: 87k4sgsq3k.fsf@stats.ox.ac.uk
Dan Davison <davison@stats.ox.ac.uk> writes:
>
> here
>
> Although Org maps "elisp" to emacs-lisp-mode in org-src-lang-modes
> (therefore C-c ' works), Org-babel currently does not recognise "elisp"
> by default. Thanks for raising this, I think we need to make ourselves
> more compatible with org-src-lang-modes.
>
> So the short answer is: change "elisp" to "emacs-lisp".
>
> The longer answer is, you could do
>
> (org-babel-add-interpreter "elisp")
> (add-to-list 'org-babel-tangle-langs '("elisp" "el"))
>
> But you (we) 'll still be faced with the problem that org-babel-load-file
> expects the blocks to be "emacs-lisp" blocks. org-babel-tangle-file, on
> the other hand, will work.
>
> Does that get things working?
>
> Dan
Yes thanks a lot I was doing a stupid mistake, in other files I always
used emacs-lisp.
But if it will be aliased even better (I could do it myself but I've
made a snippet for it so I won't forget again)...
So now I have a strange behaviour, sometimes the file is loaded and
sometimes is not
This is the init file:
--8<---------------cut here---------------start------------->8---
(setq base "~/Documents/pycon/")
(setq conf (concat base "conf/"))
(add-to-list 'load-path (concat conf "org-mode/lisp"))
(add-to-list 'load-path (concat conf "org-mode/contrib/babel/lisp"))
(require 'org)
(require 'org-babel)
(require 'org-babel-tangle)
(org-babel-tangle-file (concat base "miniconf.org"))
--8<---------------cut here---------------end--------------->8---
The tangling works perfectly fine on my "real" emacs conf, but with the
testing configuration I get sometimes (don't understand why sometimes it
works this)
http://gist.github.com/362682
And is short
Debugger entered--Lisp error: (void-function -mode)
What is that supposed to mean? Just some stupid mistake again?
The file to load is
http://github.com/AndreaCrotti/Org-mode-notes/blob/master/miniconf.org
but I guess that's correct because on one emacs it works perfectly fine
next prev parent reply other threads:[~2010-04-11 12:22 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 9:17 Tangling Andrea Crotti
2010-04-09 13:38 ` Tangling Dan Davison
2010-04-11 12:22 ` Andrea Crotti [this message]
2010-04-11 12:44 ` Tangling Dan Davison
2010-04-12 8:40 ` Tangling Andrea Crotti
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=m1zl1atbzm.fsf@gmail.com \
--to=andrea.crotti.0@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).