I use emacs for editing my sql code. I work 99% of time on postgresql plpgsql code. All my files with extension .sql contain postgresql. I’m curious is there a way to set sql-highlight-postgres-keywords SQL highlighting default instead of ANSI SQL, because it’s pretty annoying to switch mode every time I open a file.
Share
Usually in emacs, if you want to change the settings every time some mode is opened, you use a hook. Something similar to this should work: