Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E664F429E25 for ; Mon, 6 Jun 2011 23:58:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.7 X-Spam-Level: X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YUvUxuXx8saa for ; Mon, 6 Jun 2011 23:58:03 -0700 (PDT) Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU [18.7.68.35]) by olra.theworths.org (Postfix) with ESMTP id 6E5EC431FB6 for ; Mon, 6 Jun 2011 23:58:03 -0700 (PDT) X-AuditID: 12074423-b7ce8ae000000a29-60-4dedcbf69ba3 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36]) by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP id 07.95.02601.6FBCDED4; Tue, 7 Jun 2011 02:57:58 -0400 (EDT) Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103]) by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id p576w280012118; Tue, 7 Jun 2011 02:58:02 -0400 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91]) (authenticated bits=0) (User authenticated as amdragon@ATHENA.MIT.EDU) by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id p576w1ao007213 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Tue, 7 Jun 2011 02:58:02 -0400 (EDT) Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.72) (envelope-from ) id 1QTqEc-0007Eh-QZ; Tue, 07 Jun 2011 02:57:54 -0400 Date: Tue, 7 Jun 2011 02:57:54 -0400 From: Austin Clements To: Dmitry Kurochkin Subject: Re: [PATCH] Add dir-locals style variables for C++ and Elisp code. Message-ID: <20110607065754.GH29861@mit.edu> References: <1307424025-20889-1-git-send-email-amdragon@mit.edu> <87d3iqp5wk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87d3iqp5wk.fsf@gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprAKsWRmVeSWpSXmKPExsUixG6novvt9Ftfg9Z+c4urW/vZLa7fnMns wOSxc9Zddo9nq24xBzBFcdmkpOZklqUW6dslcGUc+XSGtWAqX8WfU+9YGxhfcnUxcnJICJhI bNu4iR3CFpO4cG89WxcjF4eQwD5GiSk7HzNCOOsZJfoOvGOCcE4wSZx9PZkdwlnCKNG+/TIr SD+LgIpE77o7YLPYBDQktu1fzghiiwgYSty6+IoZxGYWkJb49ruZCcQWFvCWOPDqCwuIzSug I9Hdt4kNxBYSiJVYcGoGO0RcUOLkzCcsEL1aEjf+vQTq5QCbs/wfB0iYU0BdoqXlFdgJokAn XNvfzjaBUWgWku5ZSLpnIXQvYGRexSibklulm5uYmVOcmqxbnJyYl5dapGuml5tZopeaUrqJ ERzYLso7GP8cVDrEKMDBqMTDq/39ja8Qa2JZcWXuIUZJDiYlUd5iYFwI8SXlp1RmJBZnxBeV 5qQWH2KU4GBWEuGdEAGU401JrKxKLcqHSUlzsCiJ886VVPcVEkhPLEnNTk0tSC2CycpwcChJ 8LKDDBUsSk1PrUjLzClBSDNxcIIM5wEaDlbDW1yQmFucmQ6RP8Woy3Ho5KuDjEIsefl5qVLi vBwgRQIgRRmleXBzYAnpFaM40FvCvKYgVTzAZAY36RXQEiagJcedXoEsKUlESEk1MF4unvyQ TSNpDc+7V8GTZZcVxLf//nF8+1zJyLsXl89VrW3fbDK3MuWtwaadb3oV9/3bf6xkabfb48eL tHc477P/feb35/7gibveZk4Mee6g8crb3GN69rki138c6e3L1Pbk+lzbq114qc3v/JLD7GJf v+t1Xfsw6dIuxwJBRyG+d9nsq3xMrj9SYinOSDTUYi4qTgQAtITXMiMDAAA= Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2011 06:58:04 -0000 Quoth Dmitry Kurochkin on Jun 07 at 9:27 am: > Hi Austin. > > On Tue, 7 Jun 2011 01:20:25 -0400, Austin Clements wrote: > > Also, slightly reformat dir-locals.el so that the settings align and > > to make it friendlier for future additions. > > --- > > .dir-locals.el | 18 ++++++++++++++---- > > 1 files changed, 14 insertions(+), 4 deletions(-) > > > > diff --git a/.dir-locals.el b/.dir-locals.el > > index cbdb1f9..eff29fc 100644 > > --- a/.dir-locals.el > > +++ b/.dir-locals.el > > @@ -1,7 +1,17 @@ > > ; emacs local configuration settings for notmuch source > > ; surmised by dkg on 2010-11-23 13:43:18-0500 > > +; amended by amdragon on 2011-06-06 > > > > -((c-mode . ((indent-tabs-mode . t) > > - (tab-width . 8) > > - (c-basic-offset . 4) > > - (c-file-style . "linux")))) > > +((c-mode > > + (indent-tabs-mode . t) > > + (tab-width . 8) > > + (c-basic-offset . 4) > > + (c-file-style . "linux")) > > + (c++-mode > > + (indent-tabs-mode . t) > > + (tab-width . 8) > > + (c-basic-offset . 4) > > + (c-file-style . "linux")) > > + (emacs-lisp-mode > > + (indent-tabs-mode . t)) > > + ) > > Why tab-width is not set for the emacs-lisp-mode? Because I forgot to set it. ]:--8) > Also, perhaps we should set these variables for all modes? Setting > c-basic-offset and c-file-style should not hurt. And indent-tabs-mode > and tab-width should be relevant for any file in notmuch (shell, python, > probably even text files), no? Personally, I would prefer to keep .dir-locals conservative, rather than make sweeping settings. For example, the Python code isn't (and definitely shouldn't be) using tabs. Adding settings for shell is a good idea, though. > Regards, > Dmitry