18.06.2015 11:36, Markus Armbruster wrote: > Michael Tokarev <m...@tls.msk.ru> 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