Hi All, I'm sure somebody has already solved this problem on Unix. When I open *.sql files in my emacs it highlights the SQL and Postgres syntax correctly. But does anybody know how to make it behave like that also after invoking \e command in psql (so that I don't need to say: M-x sql-mode each time). My .profile contains: PSQL_EDITOR=emacs; export PSQL_EDITOR. Thanks! MikeW -- Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general