org-babel-init.el 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. ;;; org-babel-init.el --- loads org-babel
  2. ;; Copyright (C) 2009 Eric Schulte
  3. ;; Author: Eric Schulte
  4. ;; Keywords: literate programming, reproducible research
  5. ;; Homepage: http://orgmode.org
  6. ;; Version: 0.01
  7. ;;; License:
  8. ;; This program is free software; you can redistribute it and/or modify
  9. ;; it under the terms of the GNU General Public License as published by
  10. ;; the Free Software Foundation; either version 3, or (at your option)
  11. ;; any later version.
  12. ;;
  13. ;; This program is distributed in the hope that it will be useful,
  14. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. ;; GNU General Public License for more details.
  17. ;;
  18. ;; You should have received a copy of the GNU General Public License
  19. ;; along with GNU Emacs; see the file COPYING. If not, write to the
  20. ;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  21. ;; Boston, MA 02110-1301, USA.
  22. ;;; Commentary:
  23. ;; for more information see the comments in org-babel.el
  24. ;;; Code:
  25. (require 'cl)
  26. (require 'org)
  27. (require 'org-exp-blocks)
  28. (require 'org-babel)
  29. (require 'org-babel-ref)
  30. (require 'org-babel-exp)
  31. (require 'org-babel-table)
  32. (require 'org-babel-comint)
  33. (require 'org-babel-lob)
  34. (require 'org-babel-tangle)
  35. ;; load utility files
  36. (let ((util-dir (expand-file-name
  37. "util"
  38. (expand-file-name
  39. ".."
  40. (file-name-directory (or load-file-name buffer-file-name))))))
  41. ;; other versions of htmlize can cause export problems
  42. (load (expand-file-name "htmlize.el" util-dir))
  43. ;; the newest version of inf-ruby.el is required by org-babel-ruby.el
  44. (load (expand-file-name "inf-ruby.el" util-dir))
  45. ;; gnuplot mode
  46. (load (expand-file-name "gnuplot.el"
  47. (expand-file-name "gnuplot-mode.0.6.0" util-dir))))
  48. ;; language specific files
  49. (add-to-list 'load-path (expand-file-name "langs" (file-name-directory (or load-file-name buffer-file-name))))
  50. (require 'org-babel-ruby)
  51. (require 'org-babel-python)
  52. (require 'org-babel-sh)
  53. (require 'org-babel-lisp)
  54. (require 'org-babel-R)
  55. (require 'org-babel-ditaa)
  56. (require 'org-babel-gnuplot)
  57. (require 'org-babel-dot)
  58. (require 'org-babel-asymptote)
  59. (require 'org-babel-sql)
  60. ;; load the library of babel
  61. (org-babel-lob-ingest (expand-file-name
  62. "library-of-babel.org"
  63. (expand-file-name ".."
  64. (file-name-directory (or load-file-name buffer-file-name)))))
  65. (provide 'org-babel-init)
  66. ;;; org-babel-init.el ends here