From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: Using Eric Schulte's starter kit with org mode from source Date: Mon, 22 Apr 2013 06:59:37 -0600 Message-ID: <87y5ca67ra.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:38176) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUGLG-0002bu-5H for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 08:59:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UUGLD-0000nx-2W for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 08:59:34 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:54300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UUGLC-0000m6-St for emacs-orgmode@gnu.org; Mon, 22 Apr 2013 08:59:30 -0400 Received: by mail-pa0-f43.google.com with SMTP id hz1so1101926pad.30 for ; Mon, 22 Apr 2013 05:59:29 -0700 (PDT) In-Reply-To: (Alan Schmitt's message of "Mon, 22 Apr 2013 14:31:01 +0200") 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: Alan Schmitt Cc: emacs-orgmode Alan Schmitt writes: > Hello, > > I would like to try using Eric Schulte's starter kit, mainly to have my > configuration file in org-mode, using an org-mode installation from > source. An issue on github > (https://github.com/eschulte/emacs24-starter-kit/pull/29) suggests using > a command line argument to do so, but this is not convenient (especially > since I'm using emacs on OS X). Is there a way to pick up a source > install directly from the configuration files (for instance from > init.el)? > > Thanks, > > Alan > Adding a line to init.el will allow you to specify the Org-mode instill to use. Something like the following should work. (add-hook 'after-init-hook `(lambda () ;; remember this directory (setq starter-kit-dir ,(file-name-directory (or load-file-name (buffer-file-name)))) ;; load up the starter kit (add-to-list 'load-path "~/path/to/org-mode/lisp/") (require 'org) (org-babel-load-file (expand-file-name "starter-kit.org" starter-kit-dir)))) -- Eric Schulte http://cs.unm.edu/~eschulte