From: Eric Schulte <schulte.eric@gmail.com>
To: John Wiegley <jwiegley@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Experiences with "literate elisp" and ob-tangle?
Date: Mon, 22 Aug 2011 11:09:17 -0600 [thread overview]
Message-ID: <877h658jb6.fsf@gmail.com> (raw)
In-Reply-To: <m2hb59h6iv.fsf@gmail.com> (John Wiegley's message of "Mon, 22 Aug 2011 09:20:40 -0500")
Hi John,
John Wiegley <jwiegley@gmail.com> writes:
> Hi all, I'm considering switching my lengthy .emacs over to a literate Org
> file, using ob-tangle, and as I was wondering if others had any experience
> with this, and if so, does it slow down startup much?
The first load after a .org file is changed will require re-tangling of
the file, but in most cases the .el files are loaded directly and there
should be no slowdown. I've been using this for over a year now with no
noticable slowdown. For an example of a large config structured using
.org files and based on Emacs24 see [1].
> Is there a way to get ob-tangle to compile the resulting Elisp file?
Yes, see the makefile in the repo I pointed to above [2].
>
> I'm guessing it does not regenerate the .el file if no changes have
> been made to the .org, right?
>
That is correct, the `org-babel-load-file' function compares the
modification dates of the .el and .org file to see if re-tangling is
required.
Best of luck -- Eric
>
> Thanks,
> John
>
>
Footnotes:
[1] https://github.com/eschulte/emacs24-starter-kit
[2] https://github.com/eschulte/emacs24-starter-kit/blob/master/Makefile
--
Eric Schulte
http://cs.unm.edu/~eschulte/
next prev parent reply other threads:[~2011-08-22 17:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-22 14:20 Experiences with "literate elisp" and ob-tangle? John Wiegley
2011-08-22 17:09 ` Eric Schulte [this message]
2011-08-22 18:18 ` Darlan Cavalcante Moreira
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=877h658jb6.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jwiegley@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).