Split LaTeX compile keybinding into function

useful for mmm-mode
This commit is contained in:
Adam Goldsmith 2016-03-01 15:26:21 -05:00
parent 653dfd62d0
commit 15be089570

View File

@ -254,11 +254,12 @@
(use-package latex
:config
(define-key LaTeX-mode-map (kbd "C-z")
'(lambda () (interactive)
(save-buffer)
(TeX-command "LaTeX" 'TeX-master-file -1)))
(setq-default TeX-command-extra-options "-shell-escape")
(defun latex-save-and-compile ()
(interactive)
(save-buffer)
(TeX-command "LaTeX" 'TeX-master-file -1))
(define-key LaTeX-mode-map (kbd "C-z") 'latex-save-and-compile)
(define-key LaTeX-mode-map (kbd "C-c e") 'tex-close-latex-block)
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
(defun latex-tsv-to-table ()