emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Uros Perisic <uros.m.perisic@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Load Org Babel Languages on Demand
Date: Sat, 15 Feb 2020 12:41:07 +0800	[thread overview]
Message-ID: <CAJkVgVqFkp3tj4JwVkr+-Ge6fPVazgpTakonZoU6Ec5gaRFCvQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 769 bytes --]

In Doom Emacs (https://github.com/hlissner/doom-emacs), Org's babel
packages aren't loaded all at once with org-babel-do-load-languages, but on
demand when their src blocks are encountered (fontified) or executed. Same
with its export backends.

Dooms maintainer, Henrik Lissner, has kindly extracted his code into a gist
(https://gist.github.com/hlissner/14b42de71c65945f55a31b393af0391b)
following a GitHub issue (
https://github.com/hlissner/doom-emacs/issues/2536#issuecomment-586088410)
and the interest expressed in a Reddit thread (
https://www.reddit.com/r/emacs/comments/f3ed3r/how_is_doom_emacs_so_damn_fast/fhixxjx/
).

I think this would make the org-mode literate programming experience
significantly smoother.

Any thoughts on including this in org-mode?

[-- Attachment #2: Type: text/html, Size: 1303 bytes --]

             reply	other threads:[~2020-02-15  4:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-02-15  4:41 Uros Perisic [this message]
2020-02-17  0:01 ` Load Org Babel Languages on Demand Bastien

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAJkVgVqFkp3tj4JwVkr+-Ge6fPVazgpTakonZoU6Ec5gaRFCvQ@mail.gmail.com \
    --to=uros.m.perisic@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 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).