Search Postgresql Archives

Re: syntax highlighting in emacs after \e in psql

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

 



On mån, 2011-11-14 at 08:08 -0800, MikeW wrote:
> 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.

(add-to-list 'auto-mode-alist
             '("/psql.edit.[0-9]+\\'" . sql-mode))


-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux