;; Time-stamp: <2014-08-13 11:46:17 kmodi>

;; LaTeX
(load "auctex.el" nil t t)
(load "preview-latex.el" nil t t)

(setq LaTeX-command "latex -shell-escape")

;; Source: http://www.sigmafield.org/2009/10/03/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
;; Source: http://www.gnu.org/software/auctex/manual/auctex/Multifile.html
(setq TeX-PDF-mode t
      TeX-auto-save t
      TeX-parse-self t
      TeX-save-query nil)

(setq-default TeX-master nil) ; Query for master file.


(provide 'setup-latex)

;; Time-stamp: <2014-10-18 13:00:27 kmodi>

;; LaTeX
(load "auctex.el" nil t t)

;; preview-latex doesn't work in emacs 24.4 (also doesn't seem like it's needed)
(==e243
 (load "preview-latex.el" nil t t))

(setq LaTeX-command "latex -shell-escape")

;; Source: http://www.sigmafield.org/2009/10/03/using-doc-view-with-auto-revert-to-view-latex-pdf-output-in-emacs
(add-hook 'doc-view-mode-hook 'auto-revert-mode)
;; Source: http://www.gnu.org/software/auctex/manual/auctex/Multifile.html
(setq TeX-PDF-mode t
      TeX-auto-save t
      TeX-parse-self t
      TeX-save-query nil)

(setq-default TeX-master nil) ; Query for master file.


(provide 'setup-latex)

Disable loading of `preview-latex' in emacs 24.4; that would still be loaded in emacs 24.3
Disable loading of `preview-latex' in emacs 24.4; that would still be
loaded in emacs 24.3

kaushalmodi/.emacs.d,kaushalmodi/.emacs.d