Re: emacs behave like pgjindent?

Поиск
Список
Период
Сортировка
От Michael Adler
Тема Re: emacs behave like pgjindent?
Дата
Msg-id Pine.NEB.4.53.0302070941030.20145@reva.sixgirls.org
обсуждение исходный текст
Ответ на Re: emacs behave like pgjindent?  (Dave Cramer <Dave@micro-automation.net>)
Список pgsql-jdbc
If anyone's interested, this does a decent job. The difference I saw was
that emacs will still let a blank line have a tab on it. pgjindent will
trim it off with entab.

(defun my-jde-mode-hook()
  ;; attempt to match PostgreSQL's pgjindent style
  (setq tab-width 4)
  (setq indent-tabs-mode t)
  (c-set-offset 'substatement-open 0)
  )
(add-hook 'jde-mode-hook 'my-jde-mode-hook)



- Mike Adler

On Fri, 7 Feb 2003, Dave Cramer wrote:
> Date: 07 Feb 2003 09:20:03 -0500
> From: Dave Cramer <Dave@micro-automation.net>
> To: Michael Adler <adler@glimpser.org>
> Cc: "pgsql-jdbc@postgresql.org" <pgsql-jdbc@postgresql.org>,
>      Barry Lind <blind@xythos.com>
> Subject: Re: [JDBC] emacs behave like pgjindent?
>
> You're welcome to go ahead, but I'm not sure how many folks use emacs. I
> confess to using JBuilder, or vi
>
> Dave
> On Fri, 2003-02-07 at 08:50, Michael Adler wrote:
> > Has anyone crafted a mode-hook so that emacs behaves roughly like
> > pgjindent?  The default JDE style is quite different. If no one has done
> > the leg work, I may take a stab.
> >
> > -Mike
> --
> Dave Cramer <Dave@micro-automation.net>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: emacs behave like pgjindent?
Следующее
От: Michael Adler
Дата:
Сообщение: new class layout to support COPY protocal