[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Special SQL mode?

From: Stefan Monnier
Subject: Re: Special SQL mode?
Date: Thu, 22 Nov 2012 11:47:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> Nonetheless, my *.sql files automatically get SQL[ANSI] mode.

When pp-sql-mode calls sql-mode, sql-mode registers
`sql-highlight-product' on `hack-local-variables-hook' (which is run
later, even after running the mode hooks) to select which SQL variant
should be used.

A quick hack would be for you to (remove-hook 'hack-local-variables-hook
'sql-highlight-product t).  But maybe another approach (instead of
or additionally to creating a derived-mode) would be to add an entry in
sql-product-alist for your "pp sql".


reply via email to

[Prev in Thread] Current Thread [Next in Thread]