monnier pushed a commit to branch externals/auctex
in repository elpa.
commit d988ddd5e75f8fa6dcf28542f6e563e86d0c4cc3
Author: Tassilo Horn <[email protected]>
Date: Sun Jan 13 11:05:48 2013 +0000
* tex.el (TeX-command-list): Add command to run ChkTeX.
---
ChangeLog | 4 ++++
tex.el | 2 ++
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6da5067..901ddbe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-01-11 Ivan Andrus <[email protected]>
+
+ * tex.el (TeX-command-list): Add command to run ChkTeX.
+
2013-01-11 Tassilo Horn <[email protected]>
* Makefile.in (STYLESRC): Add new style files kantlipsum.el,
diff --git a/tex.el b/tex.el
index ab92f8b..7a59a76 100644
--- a/tex.el
+++ b/tex.el
@@ -147,6 +147,8 @@ If nil, none is specified."
("Index" "makeindex %s" TeX-run-command nil t :help "Create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
+ ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
+ :help "Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t
:help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t