Emacs-24 sql.el has a built-in module! Just run M-x sql-set-product MySQL RET
, and the syntax table will be configured automatically, as well as keywords for blocking fonts for all additional reserved words and types, interactive mode, etc. Etc. Brilliant!!
If you look under SQL
in the menu bar, you can use the submenu Product
to select MySQL
.
You can also M-x customize-variable sql-product RET
install the default product from ANSI.
source
share