-You should clone this repository somewhere.
-
-Here is how I load org-ref. This code is in my init.el file.
-
-#+BEGIN_SRC emacs-lisp
-;; remember this directory
-(defconst starter-kit-dir (file-name-directory (or load-file-name (buffer-file-name)))
- "Directory where the starterkit is installed.")
-
-;;;;;;; org path for loadable org-files
-(defvar org-load-path
- (list (file-name-as-directory
- (expand-file-name "org" starter-kit-dir)))
- "List of directories to find org-files that `org-babel-load-file' can load code from.")
-
-(defun org-require (feature)
- "Load a FEATURE from an org-file.
-FEATURE is a symbol, and it is loaded from an org-file by the name of FEATURE.org, that is in the `org-load-path'. The FEATURE is loaded from `org-babel-load-file'."
- (let ((org-file (concat (symbol-name feature) ".org"))
- (path))
-
- ;; find the org-file
- (catch 'result
- (loop for dir in org-load-path do
- (when (file-exists-p
- (setq path
- (expand-file-name
- org-file
- dir)))
- (throw 'result path))))
- (let ((default-directory (file-name-directory path)))
- (org-babel-load-file path))))
-
-;; https://github.com/jkitchin/org-ref
-;; for loading org-files
-(add-to-list 'org-load-path
- (expand-file-name "org-ref" starter-kit-dir))
-
-;; for loading emacs-lisp files
-(add-to-list 'load-path
- (expand-file-name "org-ref" starter-kit-dir))
-
-(org-require 'org-ref)
-(org-require 'doi-utils)
-(org-require 'pubmed)
-(require 'jmax-bibtex)
-#+END_SRC