summaryrefslogtreecommitdiff
path: root/tex-conf.el
diff options
context:
space:
mode:
Diffstat (limited to 'tex-conf.el')
-rw-r--r--tex-conf.el11
1 files changed, 11 insertions, 0 deletions
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 "รน")