all repos — nixfiles @ 264ec8fafa45e0f9ed367d7413dd7c4331dda77c

System and user configuration, managed by nix and home-manager

emacs: use JSON mode for .lock files
Alan Pearce alan@alanpearce.eu
Tue, 10 Dec 2024 19:01:04 +0100
commit

264ec8fafa45e0f9ed367d7413dd7c4331dda77c

parent

2f3f9be24e76a91850b132e77d813d412ff72675

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -793,6 +793,7 @@ ;;;; js
 (setq js-enabled-frameworks '(javascript))
 (add-to-list 'auto-mode-alist '("\\.[cm]js\\'" . js-ts-mode))
+(add-to-list 'auto-mode-alist '("\\.lock" . json-ts-mode))
 
 ;;;; typescript