From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id E7625429E25 for ; Mon, 6 Jun 2011 22:27:34 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 zUMkV1unWfau for ; Mon, 6 Jun 2011 22:27:34 -0700 (PDT) Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com [209.85.161.53]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 36F2E431FB6 for ; Mon, 6 Jun 2011 22:27:34 -0700 (PDT) Received: by fxm8 with SMTP id 8so3175040fxm.26 for ; Mon, 06 Jun 2011 22:27:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version:content-type; bh=zvgSD8rkx57vBwlbNoJa28sSKU9gCai+mWpFfXLwJiU=; b=T1Szl55vtpHAKoESmaJ/KGmh8KJfHdfi7Z+3DHWTK5XxmZax72hARK0aU5UH5fsWLi AEqKpPex+A+asYeICjKUsTvvO9LCw35NehEwp4Czpd7TGALDA62viaSEZ4QvjmG8oSka vz/WOUyVm8jZZ/+tq5hWc9bLH1qhZvDimHGI0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version:content-type; b=cCEjjZUH8AZGnpIH2qLEZJyLlqENHATuEunSmxnik9BsLXWgTVRwrOgidZ2BL/mG1K w+dklbITkWBuUKseu9sl5we4Y3iD0q+RwwOaYKfAPAxjeCutI57tAlTL96O6C/eUD8JT 0iRFLREHKfPLYWz2V8DW4D+JLQwNf83DYibAk= Received: by 10.223.45.25 with SMTP id c25mr362309faf.99.1307424452768; Mon, 06 Jun 2011 22:27:32 -0700 (PDT) Received: from localhost ([91.144.186.21]) by mx.google.com with ESMTPS id q21sm1578451fan.40.2011.06.06.22.27.30 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 06 Jun 2011 22:27:31 -0700 (PDT) From: Dmitry Kurochkin To: Austin Clements , notmuch@notmuchmail.org Subject: Re: [PATCH] Add dir-locals style variables for C++ and Elisp code. In-Reply-To: <1307424025-20889-1-git-send-email-amdragon@mit.edu> References: <1307424025-20889-1-git-send-email-amdragon@mit.edu> User-Agent: Notmuch/0.5-227-g031f722 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 07 Jun 2011 09:27:55 +0400 Message-ID: <87d3iqp5wk.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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 05:27:35 -0000 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? 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? Regards, Dmitry > -- > 1.7.5.1 > > _______________________________________________ > notmuch mailing list > notmuch@notmuchmail.org > http://notmuchmail.org/mailman/listinfo/notmuch