From mboxrd@z Thu Jan 1 00:00:00 1970 From: Memnon Anon Subject: Re: Some Experiences with org-babel-load-file Date: Tue, 11 Dec 2012 17:01:03 +0000 (UTC) Message-ID: <876248eehe.fsf@mean.albasani.net> References: <50C66343.2010202@miszellen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:43609) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTLD-0000GQ-8W for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:10:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiTL6-0008A5-EZ for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:09:59 -0500 Received: from plane.gmane.org ([80.91.229.3]:42909) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiTL6-00089s-7k for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 12:09:52 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TiTLH-0008Ve-UR for emacs-orgmode@gnu.org; Tue, 11 Dec 2012 18:10:03 +0100 Received: from e178207239.adsl.alicedsl.de ([85.178.207.239]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Dec 2012 18:10:03 +0100 Received: from gegendosenfleisch by e178207239.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 11 Dec 2012 18:10:03 +0100 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 Florian Beck writes: > 1. `org-babel-load-file' doesn't seem to be in the org docu. The > instructions on worg are obsolete (mentions `org-install') and > needlessly complicated. Just putting > > (package-initialize) ;; only if you use the newest org ... and the newest emacs! > (require 'ob-tangle) > (org-babel-load-file "/path/to/your/org-init-file.org") > > into your .emacs (no need for .emacs.d/init.el) seems to suffice. This is one way to do it, not necessarily the only way. I don't think a 4 line init.el is that complicated ;). > 4. When I babel-load "my-package.org", all emacs sees is the tangled > "my-package.el", which of course is right. The problem, however, is > that I often search for one of my functions, change it … and loose the > changes the next time I start emacs (I already got zapped a couple of > times). Integrating org-tangle with the emacs documentation would be > tough I guess. But how about setting a read-only file locale variable > to block the most stupid mistakes? How do you change your functions? If I want to do it, I tinker with them directly in my emacs.org and evaluate from there or copy the relevant bits to the *scratch* buffer and bring them back to emacs.org once it works. If the file changed, the el file gets tangled fresh automatically next time I start emacs and used right away. I don't really see a problem? Memnon