Re: syntax highlighting in emacs after \e in psql

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: MikeW <wlasenek(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: syntax highlighting in emacs after \e in psql
Date: 2011-11-15 21:00:40
Message-ID: 1321390840.18767.13.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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))

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Gavin Flower 2011-11-15 22:01:28 Re: partitioning a dataset + employing hysteresis condition
Previous Message Gavin Flower 2011-11-15 20:28:46 Re: partitioning a dataset + employing hysteresis condition