From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Re: autoloading stuff Date: Sun, 27 Dec 2009 13:27:23 -1000 Message-ID: <3144A9A6-8DFE-4FDE-8DA5-22CCD4173579@tsdye.com> References: <96CDCA4A-2DD3-4DD3-9245-21C052E2E3BF@tsdye.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NP2WL-0000U0-5w for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 18:27:33 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NP2WG-0000P6-1r for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 18:27:32 -0500 Received: from [199.232.76.173] (port=56249 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NP2WF-0000P3-SO for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 18:27:27 -0500 Received: from outbound-mail-11.bluehost.com ([69.89.18.111]:49615) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NP2WF-0000yr-Ou for emacs-orgmode@gnu.org; Sun, 27 Dec 2009 18:27:28 -0500 In-Reply-To: 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: andrea Cc: emacs-orgmode@gnu.org Hi Andrea, On Dec 27, 2009, at 12:53 PM, andrea wrote: > "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. I don't believe this is addressed in the documentation. Perhaps Eric or Dan can give you an answer when they are back on-line. All the best, Tom