plpgsql - Making emacs to highlight postgresql syntax by default -


i use emacs editing sql code. work 99% of time on postgresql plpgsql code. files extension .sql contain postgresql. i'm curious there way set sql-highlight-postgres-keywords sql highlighting default instead of ansi sql, because it's pretty annoying switch mode every time open file.

usually in emacs, if want change settings every time mode opened, use hook. similar should work:

(add-to-list 'auto-mode-alist              '("\\.psql$" . (lambda ()                               (sql-mode)                               (sql-highlight-postgres-keywords)))) 

Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -