unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>
To: Austin Clements <amdragon@MIT.EDU>, notmuch@notmuchmail.org
Subject: Re: [PATCH] Add dir-locals style variables for C++ and Elisp code.
Date: Tue, 07 Jun 2011 09:27:55 +0400	[thread overview]
Message-ID: <87d3iqp5wk.fsf@gmail.com> (raw)
In-Reply-To: <1307424025-20889-1-git-send-email-amdragon@mit.edu>

Hi Austin.

On Tue,  7 Jun 2011 01:20:25 -0400, Austin Clements <amdragon@MIT.EDU> 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

  reply	other threads:[~2011-06-07  5:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-07  5:20 [PATCH] Add dir-locals style variables for C++ and Elisp code Austin Clements
2011-06-07  5:27 ` Dmitry Kurochkin [this message]
2011-06-07  6:57   ` Austin Clements
2011-06-07  6:38 ` Dima Kogan
2011-06-07  7:00   ` Austin Clements
2011-06-10  1:28 ` [PATCH] Add dir-locals style variables for C++, Elisp, and shell code Austin Clements
2011-06-24  0:03   ` Carl Worth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87d3iqp5wk.fsf@gmail.com \
    --to=dmitry.kurochkin@gmail.com \
    --cc=amdragon@MIT.EDU \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).