>From 5021d84fe1b96344053175a26e067a264ff99c11 Mon Sep 17 00:00:00 2001 From: Alex Branham
Date: Tue, 20 Feb 2018 14:55:52 -0600 Subject: [PATCH] Improve flymake documentation * doc/auctex.texi: Add Flymake support to manual * latex-flymake.el: Add copyright notice and fix a quote --- doc/auctex.texi | 28 ++++++++++++++++++++-------- latex-flymake.el | 24 +++++++++++++++++++++++- 2 files changed, 43 insertions(+), 9 deletions(-) diff --git a/doc/auctex.texi b/doc/auctex.texi index 08cfe040..ec328d06 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -3831,24 +3831,36 @@ will be used regardless of the value of this variable. @cindex Running @code{chktex} @cindex Style @cindex Problems address@hidden Flymake address@hidden Running Flymake Running @TeX{} or @LaTeX{} will only find regular errors in the document, not examples of bad style. Furthermore, description of the errors may often be confusing. The utilities @code{lacheck} and @code{chktex} can be used to find style errors, such as forgetting to escape the space after an abbreviation or using @samp{...} instead of address@hidden and other similar problems. You start @code{lacheck} with address@hidden C-c Check @key{RET}} and @code{chktex} with @kbd{C-c C-c ChkTeX address@hidden The result will be a list of errors in the address@hidden and other similar problems. You start @code{lacheck} +with @kbd{C-c C-c Check @key{RET}} and @code{chktex} with @kbd{C-c C-c +ChkTeX @key{RET}}. The result will be a list of errors in the @samp{*compilation*} buffer. You can go through the errors with @kbd{C-x `} (@code{next-error}, @pxref{Compilation,,,emacs,The Emacs Editor}), which will move point to the location of the next error. +Alternatively, you may want in-buffer notation. AuCTeX provides +support for this using the Flymake package in Emacs 26 or newer +(@xref{Using Flymake,,,Flymake,GNU Flymake} for details). To enable, +call @kbd{M-x flymake-mode} in the buffer or enable it in all buffers +by adding this to your init file: -Each of the two utilities will find some errors the other doesn't, but address@hidden is more configurable, allowing you to create your own -errors. You may need to install the programs before using them. You -can get @code{lacheck} from address@hidden