From: andrea <andrea.crotti.0@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: autoloading stuff
Date: Sun, 27 Dec 2009 23:53:43 +0100 [thread overview]
Message-ID: <m1skaw6nbc.fsf@gmail.com> (raw)
In-Reply-To: 96CDCA4A-2DD3-4DD3-9245-21C052E2E3BF@tsdye.com
"Thomas S. Dye" <tsd@tsdye.com> 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" <tsd@tsdye.com> writes:
next prev parent reply other threads:[~2009-12-27 22:54 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-27 20:50 autoloading stuff andrea
2009-12-27 22:01 ` Thomas S. Dye
2009-12-27 22:53 ` andrea [this message]
2009-12-27 23:27 ` Thomas S. Dye
2009-12-28 9:46 ` andrea
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m1skaw6nbc.fsf@gmail.com \
--to=andrea.crotti.0@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.