diff --git a/contrib/hgsh/hgsh.c b/contrib/hgsh/hgsh.c
--- a/contrib/hgsh/hgsh.c
+++ b/contrib/hgsh/hgsh.c
@@ -438,3 +438,8 @@ int main(int argc, char **argv)
 
 	return 0;
 }
+
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/hgext/inotify/linux/_inotify.c b/hgext/inotify/linux/_inotify.c
--- a/hgext/inotify/linux/_inotify.c
+++ b/hgext/inotify/linux/_inotify.c
@@ -647,3 +647,8 @@ void init_inotify(void)
 		define_consts(dict);
 }
 #endif
+
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/base85.c b/mercurial/base85.c
--- a/mercurial/base85.c
+++ b/mercurial/base85.c
@@ -178,3 +178,8 @@ PyMODINIT_FUNC initbase85(void)
 	b85prep();
 }
 #endif
+
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/bdiff.c b/mercurial/bdiff.c
--- a/mercurial/bdiff.c
+++ b/mercurial/bdiff.c
@@ -451,3 +451,7 @@ PyMODINIT_FUNC initbdiff(void)
 }
 #endif
 
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/diffhelpers.c b/mercurial/diffhelpers.c
--- a/mercurial/diffhelpers.c
+++ b/mercurial/diffhelpers.c
@@ -188,3 +188,7 @@ initdiffhelpers(void)
 }
 #endif
 
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/mpatch.c b/mercurial/mpatch.c
--- a/mercurial/mpatch.c
+++ b/mercurial/mpatch.c
@@ -468,3 +468,8 @@ initmpatch(void)
 	mpatch_Error = PyErr_NewException("mpatch.mpatchError", NULL, NULL);
 }
 #endif
+
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/osutil.c b/mercurial/osutil.c
--- a/mercurial/osutil.c
+++ b/mercurial/osutil.c
@@ -552,3 +552,8 @@ PyMODINIT_FUNC initosutil(void)
 	Py_InitModule3("osutil", methods, osutil_doc);
 }
 #endif
+
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/parsers.c b/mercurial/parsers.c
--- a/mercurial/parsers.c
+++ b/mercurial/parsers.c
@@ -416,3 +416,7 @@ PyMODINIT_FUNC initparsers(void)
 }
 #endif
 
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */
diff --git a/mercurial/util.h b/mercurial/util.h
--- a/mercurial/util.h
+++ b/mercurial/util.h
@@ -103,3 +103,7 @@
 
 #endif /* _HG_UTIL_H_ */
 
+/* Local Variables:      */
+/* c-file-style: "linux" */
+/* indent-tabs-mode: t   */
+/* End:                  */