Next: , Previous: Evaluating code blocks, Up: Working With Source Code

14.6 Library of Babel

The “Library of Babel” consists of code blocks that can be called from any Org mode file. Code blocks defined in the “Library of Babel” can be called remotely as if they were in the current Org mode buffer (see Evaluating code blocks for information on the syntax of remote code block evaluation).

The central repository of code blocks in the “Library of Babel” is housed in an Org mode file located in the ‘contrib’ directory of Org mode.

Users can add code blocks they believe to be generally useful to their “Library of Babel.” The code blocks can be stored in any Org mode file and then loaded into the library with org-babel-lob-ingest.

Code blocks located in any Org mode file can be loaded into the “Library of Babel” with the org-babel-lob-ingest function, bound to C-c C-v i.