summaryrefslogtreecommitdiff
path: root/init/km-tex.el
blob: 6dedd0652ec3cceab60f6667c30fece2143e3e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
(require 'tex)

;;; add path for pdflatex
(setenv "PATH"
        (concat
         "/usr/texbin" ":"
         (getenv "PATH")))

;; commented out the rest of it because something was causing it to
;; prompt for master file in org mode
(defun km/org-mode-reftex-setup ()
  (load-library "reftex")
  ;; (and (buffer-file-name)
  ;;      (file-exists-p (buffer-file-name))
  ;;      (reftex-parse-all))
  (define-key org-mode-map (kbd "C-c [") 'reftex-citation))

(add-hook 'org-mode-hook 'km/org-mode-reftex-setup)

(setq reftex-default-bibliography
      (quote
       ("~/refs/refs.bib")))