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
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)
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.
29 ;; for more information see the comments in org-babel.el
32 (let* ((babel-dir (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
)
48 (require 'org-exp-blocks
)
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
)
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