For the SQL-mode I use the package Sqlint with Flycheck. This works fine. Now I switched to the package EDBI which is an database interface for Emacs. There is a query editor built-in. I would like to tell flycheck that he must syntax-check the query editor with the help of the SQL-lint.
The major mode of the query editor is
After reading the well written documentation of flycheck, I have set it up as following:
(eval-after-load 'flycheck '(progn (flycheck-add-mode 'sqlint 'edbi:sql-mode)))
After evaluating it and creating a new buffer, Flycheck doesn't have any checker in the
edbi:sql-mode, as M-x
flycheck-verify-setup tells me the following:
Syntax checkers for buffer *edbi:query-editor 1 * in edbi:sql-mode:
There are no syntax checkers for this buffer!
Flycheck Mode is disabled.
I wonder why flycheck doesn't use sqlint in
edbi:sql-mode? It's set up following the documentation.