diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 000000000..c46415a5c
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1,2 @@
+*.ex diff=elixir
+*.exs diff=elixir