Split LaTeX compile keybinding into function
useful for mmm-mode
This commit is contained in:
parent
653dfd62d0
commit
15be089570
@ -254,11 +254,12 @@
|
|||||||
|
|
||||||
(use-package latex
|
(use-package latex
|
||||||
:config
|
: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")
|
(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)
|
(define-key LaTeX-mode-map (kbd "C-c e") 'tex-close-latex-block)
|
||||||
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
|
(add-hook 'LaTeX-mode-hook 'TeX-source-correlate-mode)
|
||||||
(defun latex-tsv-to-table ()
|
(defun latex-tsv-to-table ()
|
||||||
|
Loading…
Reference in New Issue
Block a user