From 98b6120bf21041c3bf10f42c7a882b2a8a32f245 Mon Sep 17 00:00:00 2001 From: JSDurand Date: Thu, 12 May 2022 11:09:39 +0800 Subject: tex-conf: add a command to do everything. * tex-conf.el (durand-tex-do-all): Do everything I want. (LaTeX-mode-map): Bind to 'C-c t'. --- tex-conf.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tex-conf.el b/tex-conf.el index 7d42aa2..1e65ace 100644 --- a/tex-conf.el +++ b/tex-conf.el @@ -219,6 +219,17 @@ (add-hook 'LaTeX-mode-hook #'reftex-mode) +;;; Do it all! + +(defun durand-tex-do-all (arg) + "Do everything I want and show the PDF." + (interactive "P") + (LaTeX-fill-environment nil) + (save-buffer 0) + (TeX-command-run-all arg)) + +(define-key LaTeX-mode-map (vector 3 ?t) #'durand-tex-do-all) + (define-key LaTeX-math-mode-map (LaTeX-math-abbrev-prefix) t) (set-default 'LaTeX-math-abbrev-prefix "รน") -- cgit v1.2.3-18-g5258