Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if4qa-0005rO-KV for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 16:28:21 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1if4qZ-0007i1-8t for pgsql-hackers@arkaria.postgresql.org; Wed, 11 Dec 2019 16:28:19 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if4qY-0007hu-AW for pgsql-hackers@lists.postgresql.org; Wed, 11 Dec 2019 16:28:19 +0000 Received: from wout1-smtp.messagingengine.com ([64.147.123.24]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1if4qU-00044Z-It for pgsql-hackers@postgresql.org; Wed, 11 Dec 2019 16:28:17 +0000 Received: from compute7.internal (compute7.nyi.internal [10.202.2.47]) by mailout.west.internal (Postfix) with ESMTP id 78590951; Wed, 11 Dec 2019 11:28:11 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute7.internal (MEProxy); Wed, 11 Dec 2019 11:28:11 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=lFiffmwQ/v6JM/gGEmAbX8AuuaVYod42PX4gFWYeq Ng=; b=oY/NmW2VU9hBitB1/aWhj5P5BMSmT3+uwgZYC1Jyelnu731WcS+fYZsSG UEzDNoAWuJHUwuB7aTvyKaYXOZZrODyVPZsB8TxDoCspXbV/tEGpzOsFgOdPX54k 7quZFL9wTi6Qs31vpl37fS7nzCsVIfUBlnJIISSifqxkKl0pXNLVVtZxhIzHPj2X tpZsqMREsV+vfWeBL+OIIWdPF0I+f24GsYoxkZfQh+myt/oLQs/7H4niavpC6EwX /eO6dN8cBb2T1QFn6Xc05baoF44v3iTiRifpnUxlEANczCIQKpdMFwtDrDtTDiMU FCh0henDhqjpZjBXteL1/Pi6YgQTg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedufedrudelhedgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhohfkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpefrvght vghrucfgihhsvghnthhrrghuthcuoehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnug hquhgrughrrghnthdrtghomheqnecuffhomhgrihhnpedvnhguqhhurggurhgrnhhtrdgt ohhmpdgrsghouhhtrdhshhenucfkphepleefrddvgeefrdefgedrleelnecurfgrrhgrmh epmhgrihhlfhhrohhmpehpvghtvghrrdgvihhsvghnthhrrghuthesvdhnughquhgrughr rghnthdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from april.pezone.net (p5df32263.dip0.t-ipconnect.de [93.243.34.99]) by mail.messagingengine.com (Postfix) with ESMTPA id 0EE248006A; Wed, 11 Dec 2019 11:28:09 -0500 (EST) Subject: Re: Add .editorconfig To: Daniel Gustafsson References: <273cb788-bbb2-ff34-ad6f-5192b44e5049@2ndquadrant.com> Cc: pgsql-hackers From: Peter Eisentraut Organization: 2ndQuadrant Message-ID: Date: Wed, 11 Dec 2019 17:28:09 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 2019-12-11 17:09, Daniel Gustafsson wrote: >> On 11 Dec 2019, at 17:00, Peter Eisentraut wrote: >> >> There were a couple of recent threads that wanted to add an .editorconfig file but never actually ended up doing so.[0][1] Here is a patch. It is meant to match more or less what's in .dir-locals.el. > > +[*.{c,h,l,y,pl,pm}] > > What about *.sh? > > Not that there is much of Python in the tree, but shouldn't those also be > covered if we do this? > > [*.py] > indent_style = space > indent_size = 4 Those were not in the Emacs config either. I'd be inclined to leave the Python stuff alone, in particular. The PEP-8 style appears to be universally accepted as the default, so we don't need to specify it here. We only need to specify what's different or where no sensible default exists. -- Peter Eisentraut http://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services