emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* autoloading stuff
@ 2009-12-27 20:50 andrea
  2009-12-27 22:01 ` Thomas S. Dye
  0 siblings, 1 reply; 5+ messages in thread
From: andrea @ 2009-12-27 20:50 UTC (permalink / raw)
  To: emacs-orgmode


If I don't remember wrong in the guide everything was supposed to be
"required".

Now is there a way to eliminate all the requires?  I have all those
requires, and the problems is that also babel loads the entire
programming mode even if I don't need it.

--8<---------------cut here---------------start------------->8---
(require 'org)
(require 'reftex)
(require 'org-extension)
(require 'remember)
(require 'org-remember)
(require 'org-annotate-file)
(require 'org-babel-init)
(require 'org-babel-dot)       ;; dot
(require 'org-babel-gnuplot)   ;; gnuplot, and gnuplot-mode
(require 'org-babel-haskell)   ;; haskell, haskell-mode, inf-haskell
(require 'org-babel-ocaml)     ;; ocaml, and tuareg-mode
(require 'org-babel-python)    ;; python, and python-mode
(require 'org-babel-ditaa)
(require 'org-babel-ruby)      ;; ruby, irb, ruby-mode, and inf-ruby
(require 'org-babel-sql)       ;; none
(require 'org-babel-sh)
(require 'orgtbl-sqlinsert)
--8<---------------cut here---------------end--------------->8---

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: autoloading stuff
  2009-12-27 20:50 autoloading stuff andrea
@ 2009-12-27 22:01 ` Thomas S. Dye
  2009-12-27 22:53   ` andrea
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2009-12-27 22:01 UTC (permalink / raw)
  To: andrea.crotti.0; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1741 bytes --]

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.

The typo you pointed out in an earlier message has been fixed and  
should appear next time the documentation has been updated on Worg.

All the best,
Tom

On Dec 27, 2009, at 10:50 AM, andrea wrote:

>
> If I don't remember wrong in the guide everything was supposed to be
> "required".
>
> Now is there a way to eliminate all the requires?  I have all those
> requires, and the problems is that also babel loads the entire
> programming mode even if I don't need it.
>
> --8<---------------cut here---------------start------------->8---
> (require 'org)
> (require 'reftex)
> (require 'org-extension)
> (require 'remember)
> (require 'org-remember)
> (require 'org-annotate-file)
> (require 'org-babel-init)
> (require 'org-babel-dot)       ;; dot
> (require 'org-babel-gnuplot)   ;; gnuplot, and gnuplot-mode
> (require 'org-babel-haskell)   ;; haskell, haskell-mode, inf-haskell
> (require 'org-babel-ocaml)     ;; ocaml, and tuareg-mode
> (require 'org-babel-python)    ;; python, and python-mode
> (require 'org-babel-ditaa)
> (require 'org-babel-ruby)      ;; ruby, irb, ruby-mode, and inf-ruby
> (require 'org-babel-sql)       ;; none
> (require 'org-babel-sh)
> (require 'orgtbl-sqlinsert)
> --8<---------------cut here---------------end--------------->8---
>
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[-- Attachment #1.2: Type: text/html, Size: 2503 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: autoloading stuff
  2009-12-27 22:01 ` Thomas S. Dye
@ 2009-12-27 22:53   ` andrea
  2009-12-27 23:27     ` Thomas S. Dye
  0 siblings, 1 reply; 5+ messages in thread
From: andrea @ 2009-12-27 22:53 UTC (permalink / raw)
  To: emacs-orgmode

"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:

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Re: autoloading stuff
  2009-12-27 22:53   ` andrea
@ 2009-12-27 23:27     ` Thomas S. Dye
  2009-12-28  9:46       ` andrea
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas S. Dye @ 2009-12-27 23:27 UTC (permalink / raw)
  To: andrea; +Cc: emacs-orgmode

Hi Andrea,

On Dec 27, 2009, at 12:53 PM, andrea wrote:

> "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.

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: autoloading stuff
  2009-12-27 23:27     ` Thomas S. Dye
@ 2009-12-28  9:46       ` andrea
  0 siblings, 0 replies; 5+ messages in thread
From: andrea @ 2009-12-28  9:46 UTC (permalink / raw)
  To: emacs-orgmode

"Thomas S. Dye" <tsd@tsdye.com> writes:

> Hi Andrea,
>
> On Dec 27, 2009, at 12:53 PM, andrea wrote:
>
> 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

I didn't find it either.
It't not so important after all, but it would be a nice thing to reduce
my emacs load time without losing features.
I also want to use the same configuration on many different hosts and
not on all of them I use so much stuff, so it's a waste of time...
Thanks

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-12-28  9:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-27 20:50 autoloading stuff andrea
2009-12-27 22:01 ` Thomas S. Dye
2009-12-27 22:53   ` andrea
2009-12-27 23:27     ` Thomas S. Dye
2009-12-28  9:46       ` andrea

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).