lang/org: lazy-load babel libraries

Removes +org-babel-languages and no longer eagerly loads babel
libraries. If an ob-*.el exists for the language, it will be loaded once
you execute its src block.

Warning: this may interfere with tangling. An unloaded library can't
register a language extension in org-babel-tangle-lang-exts (if any).
This means babel won't be able to figure out the correct file extension
for certain src blocks.

Either load the package explicitly or provide a filename + extension for
the TARGET-FILE argument:

  (require 'ob-rust)
  (org-babel-tangle-file "notes.org")
  ;; or
  (org-babel-tangle-file "notes.org" "notes.rs")
This commit is contained in:
Henrik Lissner 2018-01-28 15:30:02 -05:00
parent 01a5e9a1d7
commit 78cb47a072
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395