Make Emacs settings match perltidy configuration

Set Emacs's perl-continued-statement-offset to match perltidy's
--continuation-indentation, which is 2 (not overridden in PostgreSQL's
profile) rather than the 4 that Emacs uses by default.
This commit is contained in:
Peter Eisentraut 2018-04-23 11:44:31 -04:00
parent bc972072a3
commit 56fb890ace
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@
(dsssl-mode . ((indent-tabs-mode . nil))) (dsssl-mode . ((indent-tabs-mode . nil)))
(nxml-mode . ((indent-tabs-mode . nil))) (nxml-mode . ((indent-tabs-mode . nil)))
(perl-mode . ((perl-indent-level . 4) (perl-mode . ((perl-indent-level . 4)
(perl-continued-statement-offset . 4) (perl-continued-statement-offset . 2)
(perl-continued-brace-offset . 4) (perl-continued-brace-offset . 4)
(perl-brace-offset . 0) (perl-brace-offset . 0)
(perl-brace-imaginary-offset . 0) (perl-brace-imaginary-offset . 0)

View File

@ -48,7 +48,7 @@
(setq perl-brace-imaginary-offset 0) (setq perl-brace-imaginary-offset 0)
(setq perl-brace-offset 0) (setq perl-brace-offset 0)
(setq perl-continued-brace-offset 4) (setq perl-continued-brace-offset 4)
(setq perl-continued-statement-offset 4) (setq perl-continued-statement-offset 2)
(setq perl-indent-level 4) (setq perl-indent-level 4)
(setq perl-label-offset -2) (setq perl-label-offset -2)
(setq indent-tabs-mode t) (setq indent-tabs-mode t)