Subject: Re: bug#19506: 25.0.50; [PATCH] Use conf-mode for VC config files
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Sat, 18 Apr 2015 21:37:14 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 25.1

Eduard Wiebe wrote:

> --- a/lisp/files.el
> +++ b/lisp/files.el
> @@ -2522,6 +2522,9 @@ ARC\\|ZIP\\|LZH\\|LHA\\|ZOO\\|[JEW]AR\\|XPI\\|RAR\\|7Z\\)\\'" . archive-mode)
>       ("/config\\.\\(?:bat\\|log\\)\\'" . fundamental-mode)
>       ;; Windows candidates may be opened case sensitively on Unix
>       ("\\.\\(?:[iI][nN][iI]\\|[lL][sS][tT]\\|[rR][eE][gG]\\|[sS][yY][sS]\\)\\'" . conf-mode)
> +     ("\\(?:\\.bzrignore\\|\\.bazaar/ignore\\)\\'" . conf-mode)
> +     ("\\(?:\\.hgignore\\|\\.?hgrc\\)\\'" . conf-mode)
> +     ("\\(?:\\.git\\(ignore\\|attributes\\)\\|\\.?gitconfig\\|\\.git/info/\\(?:exclude\\|attributes\\)\\)\\'" . conf-mode)
>       ("\\.\\(?:desktop\\|la\\)\\'" . conf-unix-mode)
>       ("\\.ppd\\'" . conf-ppd-mode)
>       ("java.+\\.conf\\'" . conf-javaprop-mode)

As I see it, conf-mode is useful for things that contain
"var=value" statements.

bzrignore, bazaar/ignore, .hgignore, .gitignore, .git/info/exclude
  do not

.gitconfig and .hgrc do.
.gitattributes sort of does, maybe.
.git/info/attributes seems like overkill.

So I added just .gitconfig and .hgrc.