Commits

Fuco  committed bbaf204

Added latex syncing with sumatra

  • Participants
  • Parent commits 911bae2

Comments (0)

Files changed (1)

File files/latex-mode.el

         (defun my-LaTeX-mode-init ()
           (setq TeX-auto-save t)
           (setq TeX-parse-self t)
+          (TeX-PDF-mode t)
+          (setq reftex-plug-into-AUCTeX t)
+          (setq TeX-source-correlate-mode t)
+          (setq TeX-source-correlate-method 'synctex)
           (reftex-mode t)
-          (TeX-fold-mode t))
+          (TeX-fold-mode t)
+
+          (keyadvice-mode t)
+          (message "LaTeX mode init complete."))
         ;; ACUTeX replaces latex-mode-hook with LaTeX-mode-hook
         (add-hook 'LaTeX-mode-hook 'my-LaTeX-mode-init)