From 56fb890ace8ac0ca955ae0803c580c2074f876f6 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Mon, 23 Apr 2018 11:44:31 -0400 Subject: [PATCH] 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. --- .dir-locals.el | 2 +- src/tools/editors/emacs.samples | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.dir-locals.el b/.dir-locals.el index d8827a669a..9525d6b604 100644 --- a/.dir-locals.el +++ b/.dir-locals.el @@ -8,7 +8,7 @@ (dsssl-mode . ((indent-tabs-mode . nil))) (nxml-mode . ((indent-tabs-mode . nil))) (perl-mode . ((perl-indent-level . 4) - (perl-continued-statement-offset . 4) + (perl-continued-statement-offset . 2) (perl-continued-brace-offset . 4) (perl-brace-offset . 0) (perl-brace-imaginary-offset . 0) diff --git a/src/tools/editors/emacs.samples b/src/tools/editors/emacs.samples index d9cd47cef2..5f08c71dd1 100644 --- a/src/tools/editors/emacs.samples +++ b/src/tools/editors/emacs.samples @@ -48,7 +48,7 @@ (setq perl-brace-imaginary-offset 0) (setq perl-brace-offset 0) (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-label-offset -2) (setq indent-tabs-mode t) -- 2.40.0