Do some formatting of table and figure captions
[org-mode.git] / contrib / lisp / org-babel-init.el
blob037773fd33a94897fe15a96009146634095b7f1f
1 ;;; org-babel-init.el --- loads org-babel
3 ;; Copyright (C) 2009 Eric Schulte
5 ;; Author: Eric Schulte
6 ;; Keywords: literate programming, reproducible research
7 ;; Homepage: http://orgmode.org
8 ;; Version: 0.01
10 ;;; License:
12 ;; This program is free software; you can redistribute it and/or modify
13 ;; it under the terms of the GNU General Public License as published by
14 ;; the Free Software Foundation; either version 3, or (at your option)
15 ;; any later version.
17 ;; This program is distributed in the hope that it will be useful,
18 ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
19 ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 ;; GNU General Public License for more details.
22 ;; You should have received a copy of the GNU General Public License
23 ;; along with GNU Emacs; see the file COPYING. If not, write to the
24 ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
25 ;; Boston, MA 02110-1301, USA.
27 ;;; Commentary:
29 ;; for more information see the comments in org-babel.el
31 ;;; Code:
32 (let* ((babel-dir (expand-file-name
33 "lisp"
34 (expand-file-name
35 "babel"
36 (expand-file-name
37 ".." (file-name-directory (or load-file-name buffer-file-name))))))
39 (langs-dir (expand-file-name "langs" babel-dir)))
41 (add-to-list 'load-path babel-dir)
42 (add-to-list 'load-path langs-dir)
44 ;; org-babel core
45 (require 'cl)
46 (require 'org)
47 (require 'org-table)
48 (require 'org-exp-blocks)
49 (require 'org-babel)
50 (require 'org-babel-ref)
51 (require 'org-babel-exp)
52 (require 'org-babel-table)
53 (require 'org-babel-comint)
54 (require 'org-babel-lob)
55 (require 'org-babel-tangle)
56 (require 'org-babel-keys)
58 ;; org-babel languages
59 (require 'org-babel-emacs-lisp)
60 (require 'org-babel-sh)
62 ;; Library of babel
63 (defvar org-babel-lob-dir
64 (expand-file-name ".." babel-dir)
65 "The directory holding the library-of-babel")
66 (defun org-babel-load-library-of-babel ()
67 (org-babel-lob-ingest (expand-file-name "library-of-babel.org" org-babel-lob-dir))))
69 (provide 'org-babel-init)
70 ;;; org-babel-init.el ends here