From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Re: Org-babel init Date: Mon, 12 Jul 2010 10:17:19 -0700 Message-ID: <87eif8liw0.fsf@gmail.com> References: <19515.16766.160745.656932@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=52860 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYMiK-0000Hi-MB for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 13:22:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYMiJ-0003PM-09 for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 13:22:44 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:34371) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYMiI-0003PF-Qo for emacs-orgmode@gnu.org; Mon, 12 Jul 2010 13:22:42 -0400 Received: by pxi7 with SMTP id 7so2488361pxi.0 for ; Mon, 12 Jul 2010 10:22:41 -0700 (PDT) In-Reply-To: (Richard Riley's message of "Mon, 12 Jul 2010 18:29:04 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Richard Riley Cc: emacs-orgmode@gnu.org Hi Richard, You could probably safely simplify your config to something more like the following. http://github.com/eschulte/emacs-starter-kit/blob/master/init.el Cheers -- Eric Richard Riley writes: > Jordi Inglada writes: > >> Hi all, >> >> I am having the same problem as this user here: >> >> http://www.mail-archive.com/emacs-orgmode@gnu.org/msg17498.html >> >> and the contrib/lisp directory is indeed in my load path. >> >> I am using a git changeset cloned today (Org-mode version 6.34trans >> (release_6.36.608.gc1ef)). >> >> I have tried using "emacs -q" and then loading an .el file containing >> only the following lines: >> >> (setq load-path (cons "/home/inglada/local/src/org-mode/lisp" load-path)) >> (setq load-path (cons "/home/inglada/local/src/org-mode/contrib/lisp" load-path)) >> >> (require 'org-install) >> (require 'org-babel-init) >> (require 'org-babel-python) >> >> and I get the same result. >> >> Thank you very much for your help. >> >> Jordi >> >> _______________________________________________ >> Emacs-orgmode mailing list >> Please use `Reply All' to send replies to the list. >> Emacs-orgmode@gnu.org >> http://lists.gnu.org/mailman/listinfo/emacs-orgmode >> > > > I havent looked in detail but I recently had issues with it. Here is my > init.el. No idea if its even relevant to be honest, but babel works for > elisp files ;) > > > ;;; init.el --- Where all the magic begins > ;; > ;; This file loads both > ;; - Org-mode : http://orgmode.org/ and > ;; - Org-babel: http://orgmode.org/worg/org-contrib/babel/org-babel.php#library-of-babel > ;; > ;; It then loads the rest of our Emacs initialization from Emacs lisp > ;; embedded in literate Org-mode files. > > ;; Load up Org Mode and Org Babel for elisp embedded in Org Mode files > (setq dotfiles-dir (file-name-directory (or (buffer-file-name) load-file-name))) > > (let* ((org-dir (expand-file-name > "lisp" (expand-file-name > "org-mode" dotfiles-dir))) > (org-contrib-dir (expand-file-name > "lisp" (expand-file-name > "contrib" (expand-file-name > ".." org-dir)))) > (load-path (append (list org-dir org-contrib-dir (concat org-dir "/babel")) > (or load-path nil)))) > ;; load up Org-mode and Org-babel > (require 'org-install) > (require 'ob-tangle) > ) > > ;; load up all literate org-mode files in this directory > ;;(mapc #'org-babel-load-file (directory-files dotfiles-dir t "\\.org$")) > (org-babel-load-file "~/.emacs.d/emacs-init.org") > ;;; init.el ends here > > > Hopefully it helps. > > r. > > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode