Skip to content

Commit f5daaa8

Browse files
committed
nix-flake: set default major-mode of flake.lock to js-mode
1 parent 8a5c9d3 commit f5daaa8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

nix-flake.el

+3
Original file line numberDiff line numberDiff line change
@@ -570,5 +570,8 @@ See `nix-flake-init-post-action' variable for details."
570570
(user-error "The directory already contains a flake")
571571
(nix-flake-init-dispatch))))
572572

573+
;;;###autoload
574+
(add-to-list 'auto-mode-alist '("\\flake.lock\\'" . js-mode))
575+
573576
(provide 'nix-flake)
574577
;;; nix-flake.el ends here

0 commit comments

Comments
 (0)