Bug 1065252 - Ignore Emacs .dir-locals.el. r=ted
authorTing-Yu Lin <tlin@mozilla.com>
Tue, 09 Sep 2014 23:40:00 +0200
changeset 215980 8f093d2b219298e1860718fb1a3a950f7273a7e7
parent 215979 b68b5511f40142fa97eb88ea725a41b53a0a577e
child 215981 6502c2347dc9738e52857b33dc95f4b801d6d56d
push id4187
push userbhearsum@mozilla.com
push dateFri, 28 Nov 2014 15:29:12 +0000
treeherdermozilla-esr52@f23cc6a30c11 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1065252
milestone35.0a1
Bug 1065252 - Ignore Emacs .dir-locals.el. r=ted Ignore Emacs's directory variable files .dir-locals.el in all directory. It allows me to write ((c-mode . ((mode . c++)))) to view all .h files in C++ mode especially for those .h files generated by IDL without proper Emacs modeline. DONTBUILD because NPOTB
.gitignore
.hgignore
--- a/.gitignore
+++ b/.gitignore
@@ -7,16 +7,19 @@
 TAGS
 tags
 ID
 .DS_Store*
 
 # Vim swap files.
 .*.sw[a-z]
 
+# Emacs directory variable files.
+**/.dir-locals.el
+
 # User files that may appear at the root
 /.mozconfig*
 /mozconfig
 /configure
 /config.cache
 /config.log
 /.clang_complete
 /mach.ini
--- a/.hgignore
+++ b/.hgignore
@@ -6,16 +6,19 @@
 (?i)(^|/)TAGS$
 (^|/)ID$
 (^|/)\.DS_Store$
 
 # Vim swap files.
 ^\.sw.$
 .[^/]*\.sw.$
 
+# Emacs directory variable files.
+\.dir-locals\.el
+
 # User files that may appear at the root
 ^\.mozconfig
 ^mozconfig*
 ^configure$
 ^config\.cache$
 ^config\.log$
 ^\.clang_complete
 ^mach.ini$