From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: Moving my init.el to Org Date: Tue, 02 Sep 2014 14:42:52 +0200 Message-ID: <87y4u25h2r.fsf@gmx.us> References: <20140831103706.549dc45b@aga-netbook> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnQZ-0007Bj-UH for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:43:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOnQT-0003PG-MO for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:43:15 -0400 Received: from plane.gmane.org ([80.91.229.3]:54061) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOnQT-0003NX-GE for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 08:43:09 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XOnQQ-0005xO-Jk for emacs-orgmode@gnu.org; Tue, 02 Sep 2014 14:43:06 +0200 Received: from 46.166.186.236 ([46.166.186.236]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 14:43:06 +0200 Received: from rasmus by 46.166.186.236 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 02 Sep 2014 14:43:06 +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: emacs-orgmode@gnu.org Rainer M Krug writes: > Oleh writes: > >>> I know that I could use org-babel-load-file, or outshine. What are >>> other possibilities? What are the caveats (and advantages) of both >>> (other?) ways? >> >> I'm using a one .el file per mode approach, with around 4000 lines >> split into 40 files. >> >> This approach simplifies things a lot: for instance I haven't touched >> Javascript in ages, but all my customizations for it are sitting in >> javascript.el without getting in the way of the stuff that I'm using >> now. They aren't even loaded unless I open a js file. > > Interesting - is your configuration online, so that one could take a > look at it? I did not find them on your github page? > > Or how do you do it, that the e.g. javascript.el is only loaded when a > js file is opened? Because this is exactly what I would like to have. How about something like this: (with-eval-after-load 'js-mode (load "javascript.el")) Use eval-after-load if you are using an older Emacs. Note I don't know if there's anything called js-mode. . . -- Summon the Mothership!