emacs configuration for new perltidy settings

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема emacs configuration for new perltidy settings
Дата
Msg-id 1342042526.2712.21.camel@vanquo.pezone.net
обсуждение исходный текст
Ответы Re: emacs configuration for new perltidy settings  (Dimitri Fontaine <dimitri@2ndQuadrant.fr>)
Re: emacs configuration for new perltidy settings  (Michael Paquier <michael.paquier@gmail.com>)
Re: emacs configuration for new perltidy settings  (Bruce Momjian <bruce@momjian.us>)
Re: emacs configuration for new perltidy settings  (Noah Misch <noah@leadboat.com>)
Список pgsql-hackers
This might be useful for some people.  Here is an emacs configuration
for perl-mode that is compatible with the new perltidy settings.  Note
that the default perl-mode settings produce indentation that will be
completely shredded by the new perltidy settings.

(defun pgsql-perl-style () "Perl style adjusted for PostgreSQL project" (interactive) (setq tab-width 4) (setq
perl-indent-level4) (setq perl-continued-statement-offset 4) (setq perl-continued-brace-offset 4) (setq
perl-brace-offset0) (setq perl-brace-imaginary-offset 0) (setq perl-label-offset -2))
 

(add-hook 'perl-mode-hook          (lambda ()            (if (string-match "postgresql" buffer-file-name)
(pgsql-perl-style))))
 




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

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: Schema version management
Следующее
От: Robert Haas
Дата:
Сообщение: Re: Event Triggers reduced, v1