emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
blob c2e42117bb3a5bd5df9780088919f1a7a1f6121f 2182 bytes (raw)
name: contrib/lisp/org-babel-init.el 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
 
;;; org-babel-init.el --- loads org-babel

;; Copyright (C) 2009 Eric Schulte

;; Author: Eric Schulte
;; Keywords: literate programming, reproducible research
;; Homepage: http://orgmode.org
;; Version: 0.01

;;; License:

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation; either version 3, or (at your option)
;; any later version.
;;
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;; GNU General Public License for more details.
;;
;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING.  If not, write to the
;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
;; Boston, MA 02110-1301, USA.

;;; Commentary:

;; for more information see the comments in org-babel.el

;;; Code:
(let* ((babel-dir (expand-file-name
                   "lisp"
                   (expand-file-name
                    "babel"
                    (expand-file-name
                     ".." (file-name-directory (or load-file-name buffer-file-name))))))
       
       (langs-dir (expand-file-name "langs" babel-dir))
       (load-path (append
                   (list babel-dir langs-dir)
                   (or load-path nil))))

  ;; org-babel core
  (require 'cl)
  (require 'org)
  (require 'org-table)
  (require 'org-exp-blocks)
  (require 'org-babel)
  (require 'org-babel-ref)
  (require 'org-babel-exp)
  (require 'org-babel-table)
  (require 'org-babel-comint)
  (require 'org-babel-lob)
  (require 'org-babel-tangle)

  ;; org-babel languages
  (require 'org-babel-emacs-lisp)
  (require 'org-babel-sh)

  ;; Library of babel
  (defvar org-babel-lob-dir
    (expand-file-name ".." babel-dir)
    "The directory holding the library-of-babel")
  (defun org-babel-load-library-of-babel ()
    (org-babel-lob-ingest (expand-file-name "library-of-babel.org" org-babel-lob-dir))))

(provide 'org-babel-init)
;;; org-babel-init.el ends here

debug log:

solving c2e4211 ...
found c2e4211 in https://git.savannah.gnu.org/cgit/emacs/org-mode.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).