From 960008aa982e0481c77ef6a8b871e9c4b3014491 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Wed, 18 May 2022 14:13:16 +0200 Subject: [PATCH] Mention next-error-function in flymake-mode doc string * lisp/progmodes/flymake.el (flymake-mode): Note that you can set next-error-function (bug#32322). --- lisp/progmodes/flymake.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/progmodes/flymake.el b/lisp/progmodes/flymake.el index b5f4fff3c31..46a4fdfa373 100644 --- a/lisp/progmodes/flymake.el +++ b/lisp/progmodes/flymake.el @@ -1102,6 +1102,13 @@ The commands `flymake-goto-next-error' and `flymake-goto-prev-error' can be used to navigate among Flymake diagnostics annotated in the buffer. +By default, `flymake-mode' doesn't override the \\[next-error] command, but +if you're using Flymake a lot (and don't use the regular compilation +mechanisms that often), if can be useful to put something like +the following in your init file: + + (setq next-error-function \\='flymake-goto-next-error) + The visual appearance of each type of diagnostic can be changed by setting properties `flymake-overlay-control', `flymake-bitmap' and `flymake-severity' on the symbols of diagnostic types (like -- 2.39.2