branch: elpa/nix-mode
commit f1973ceb4b89e52eec35829722d0dbdcc39fb2ff
Author: Matthew Bauer <[email protected]>
Commit: GitHub <[email protected]>
Add .nix to auto-mode-alist
Fixes #51
---
nix-mode.el | 3 +++
1 file changed, 3 insertions(+)
diff --git a/nix-mode.el b/nix-mode.el
index 759c85f678..9b885a6736 100644
--- a/nix-mode.el
+++ b/nix-mode.el
@@ -586,5 +586,8 @@ The hook `nix-mode-hook' is run when Nix mode is started.
(easy-menu-add nix-mode-menu nix-mode-map))
+;;;###autoload
+(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode))
+
(provide 'nix-mode)
;;; nix-mode.el ends here