summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2012-04-28 16:06:28 (GMT)
committerEvan Martin <martine@danga.com>2012-04-28 16:06:55 (GMT)
commit8066c2d1bb5821077450755d774121e0205cb790 (patch)
tree7370ce9db1f01e781938a572d469e6d1eff5ca00
parent15ab6542b6faaf6e16cd14de24a88119ce463b2d (diff)
downloadNinja-8066c2d1bb5821077450755d774121e0205cb790.zip
Ninja-8066c2d1bb5821077450755d774121e0205cb790.tar.gz
Ninja-8066c2d1bb5821077450755d774121e0205cb790.tar.bz2
emacs: hook up ninja-mode to extension
-rw-r--r--misc/ninja-mode.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/ninja-mode.el b/misc/ninja-mode.el
index ff62e92..44fc82b 100644
--- a/misc/ninja-mode.el
+++ b/misc/ninja-mode.el
@@ -35,3 +35,7 @@
)
(provide 'ninja-mode)
+
+;; Run ninja-mode for files ending in .ninja.
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.ninja$" . ninja-mode))