Received: from eggs.gnu.org ([2001:4830:134:3::10]:36562) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5Vlj-0002o1-P6 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:05:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5Vlf-0006ab-UN for qemu-devel@nongnu.org; Thu, 18 Jun 2015 05:05:55 -0400 Message-ID: <558289EE.3020707@msgid.tls.msk.ru> Date: Thu, 18 Jun 2015 12:05:50 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1433258768-28946-1-git-send-email-berrange@redhat.com> <5581CDB3.2030300@msgid.tls.msk.ru> <87k2v14dlv.fsf@blackfin.pond.sub.org> In-Reply-To: <87k2v14dlv.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] Add .dir-locals.el file to configure emacs coding style List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org 18.06.2015 11:36, Markus Armbruster wrote: > Michael Tokarev writes: > >> So, what is the consensus here? >> >> Everyone who talked wants the emacs mode, but everyone >> offers their own mode. >> >> I'd pick the stroustrup variant suggested by Marcus >> since it is shortest, but while being shortest, it >> is looks a bit "magical". > > I don't think it's magical at all. It uses .dir-locals exactly as > intended. In fact, it's almost straight from the Emacs manual: No, I mean the one-line "stroustrup" definition is a bit "magical" as it "magically" have all parameters behind the scenes matching our coding style, as opposed to listing every aspect explicitly. [] > Want me to post a formal patch adding my revised .dir-locals.el? Daniel already posted his 2-line V2. It might be good idea to add indent-tabs-mod nil to other modes too. At any rate I'm *far* from emacs expert (even if it was my only editor and development environment for about 10 years, I forgot almost everything already). Thanks, /mjt