summaryrefslogtreecommitdiff
path: root/init/km-tex.el
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-01-12 12:44:44 -0500
committerKyle Meyer <meyerkya@gmail.com>2013-01-12 13:56:01 -0500
commit96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7 (patch)
tree9065fbcdd65c7c80dbc15859d9ea6dd8507b256d /init/km-tex.el
parentf5b226cae165532ed34ffefd7d003d10d984f004 (diff)
downloademacs.d-96ee4bd0bd7b5cc8a6d9ca918ede26e82a9b20a7.tar.gz
glob init files files for loading
Diffstat (limited to 'init/km-tex.el')
-rw-r--r--init/km-tex.el42
1 files changed, 42 insertions, 0 deletions
diff --git a/init/km-tex.el b/init/km-tex.el
new file mode 100644
index 0000000..1c69dbd
--- /dev/null
+++ b/init/km-tex.el
@@ -0,0 +1,42 @@
+;;; add path for pdflatex
+(getenv "PATH")
+(setenv "PATH"
+ (concat
+ "/usr/texbin" ":"
+ (getenv "PATH")))
+
+;; for viewing in-frame
+;;http://www.sigmafield.org/2009/10/03/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs/
+ ;(setq TeX-PDF-mode t)
+ ;(add-hook 'doc-view-mode-hook 'auto-revert-mode)
+
+;; reftex
+;; mostly from http://www.kieranhealy.org/esk/starter-kit-latex.html
+;; (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
+;; (autoload 'reftex-mode "reftex" "RefTeX Minor Mode" t)
+;; (autoload 'turn-on-reftex "reftex" "RefTeX Minor Mode" nil)
+;; (autoload 'reftex-citation "reftex-cite" "Make citation" nil)
+;; (autoload 'reftex-index-phrase-mode "reftex-index" "Phrase mode" t)
+;; (add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode
+;; (add-hook 'latex-mode-hook 'turn-on-reftex) ; with Emacs latex mode
+
+;; ;; Make RefTeX faster
+;; (setq reftex-enable-partial-scans t)
+;; (setq reftex-save-parse-info t)
+;; (setq reftex-use-multiple-selection-buffers t)
+
+;; 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")))