diff --git a/plugins/modelines/modeline-parser.c b/plugins/modelines/modeline-parser.c
index 59758cb..d46d797 100644
--- a/plugins/modelines/modeline-parser.c
+++ b/plugins/modelines/modeline-parser.c
@@ -399,7 +399,7 @@ parse_emacs_modeline (gchar           *s,
 				     "Emacs modeline bit: %s = %s",
 				     key->str, value->str);
 
-		if (strcmp (key->str, "Mode") == 0)
+		if (g_ascii_strcasecmp (key->str, "mode") == 0)
 		{
 			g_free (options->language_id);
 			options->language_id = get_language_id_emacs (value->str);
