Bug 1065252 - Ignore Emacs .dir-locals.el. r=ted
authorTing-Yu Lin <tlin@mozilla.com>
Tue, 09 Sep 2014 23:40:00 +0200
changeset 204744 8f093d2b219298e1860718fb1a3a950f7273a7e7
parent 204743 b68b5511f40142fa97eb88ea725a41b53a0a577e
child 204745 6502c2347dc9738e52857b33dc95f4b801d6d56d
push id48992
push usercbook@mozilla.com
push dateThu, 11 Sep 2014 05:55:56 +0000
treeherdermozilla-inbound@6502c2347dc9 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersted
bugs1065252
milestone35.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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$