From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Experiences with "literate elisp" and ob-tangle? Date: Mon, 22 Aug 2011 11:09:17 -0600 Message-ID: <877h658jb6.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:57406) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvY08-0002Bv-0E for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 13:09:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QvY01-0002Ol-DO for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 13:09:22 -0400 Received: from mail-yw0-f41.google.com ([209.85.213.41]:39110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QvY01-0002Og-8d for emacs-orgmode@gnu.org; Mon, 22 Aug 2011 13:09:21 -0400 Received: by ywm13 with SMTP id 13so3820735ywm.0 for ; Mon, 22 Aug 2011 10:09:21 -0700 (PDT) In-Reply-To: (John Wiegley's message of "Mon, 22 Aug 2011 09:20:40 -0500") 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: John Wiegley Cc: emacs-orgmode@gnu.org Hi John, John Wiegley 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/