From mboxrd@z Thu Jan 1 00:00:00 1970 From: andrea Subject: Re: autoloading stuff Date: Sun, 27 Dec 2009 23:53:43 +0100 Message-ID: References: <96CDCA4A-2DD3-4DD3-9245-21C052E2E3BF@tsdye.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NP207-0007Pa-9E for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 17:54:15 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NP202-0007OT-FX for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 17:54:14 -0500 Received: from [199.232.76.173] (port=34458 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NP202-0007OO-9I for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 17:54:10 -0500 Received: from lo.gmane.org ([80.91.229.12]:54365) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NP202-0006qJ-2C for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 17:54:10 -0500 Received: from list by lo.gmane.org with local (Exim 4.50) id 1NP1zx-0008Oo-HF for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 23:54:05 +0100 Received: from host63-85-static.24-87-b.business.telecomitalia.it ([87.24.85.63]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Dec 2009 23:54:05 +0100 Received: from andrea.crotti.0 by host63-85-static.24-87-b.business.telecomitalia.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 27 Dec 2009 23:54:05 +0100 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: emacs-orgmode@gnu.org "Thomas S. Dye" writes: > Hi Andrea, > I'm not certain I understand your question, but it brings to mind the > Getting Started section of > http://orgmode.org/worg/org-contrib/babel/intro.php, > which indicates that you can activate whatever subset of supported > languages you wish. Well the problems is that I would like to load all those possible modes only the first time that I actually open an org-file that contains code for that language. --8<---------------cut here---------------start------------->8--- ;;; Code: (require 'org-babel) (require 'tuareg) --8<---------------cut here---------------end--------------->8--- For example I find that org-babel/ocaml it loads tuareg, even if I'm not using it at all... I would like in general to require the least things as possible, and use *eval-after-load* and hooks for everything. "Thomas S. Dye" writes: