summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2024-12-10 19:01:04 +0100
committerAlan Pearce2024-12-10 19:01:04 +0100
commit264ec8fafa45e0f9ed367d7413dd7c4331dda77c (patch)
tree0d93a8faca5f801128c31617b3ff59f820edb9a6 /user/emacs
parent2f3f9be24e76a91850b132e77d813d412ff72675 (diff)
downloadnixfiles-264ec8fafa45e0f9ed367d7413dd7c4331dda77c.tar.lz
nixfiles-264ec8fafa45e0f9ed367d7413dd7c4331dda77c.tar.zst
nixfiles-264ec8fafa45e0f9ed367d7413dd7c4331dda77c.zip
emacs: use JSON mode for .lock files
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 69c71d00..4a4af8dc 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -793,6 +793,7 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
 ;;;; 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