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 edbi:sql-mode.

After reading the well written documentation of flycheck, I have set it up as following:

(eval-after-load 'flycheck
     (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.

1 Answer 1


I'm not sure whether that's just a typo in your question but there's no sqlint syntax checker in Flycheck. It's name is sql-sqlint.

  • Thanks for your reply. I changed it in my configuration from sqlint to sql-sqlint. And it gives the desired effect. It's somewhat confusing that the package is called sqlint, but the checker is actually sql-sqlint, which caused to this issue. Thanks for the help!
    – ReneFroger
    Commented Feb 21, 2016 at 22:31
  • @ReneFroger The prefix denotes the language the tool checks. We had it for better ordering and documentation. Note that we document all syntax checker names comprehensively in our manual. If you are unsure about a checker name you can look it up 🙂
    – user227
    Commented Feb 22, 2016 at 18:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.