summary refs log tree commit diff stats
path: root/user/emacs
diff options
context:
space:
mode:
authorAlan Pearce2021-03-22 12:06:08 +0100
committerAlan Pearce2021-03-22 12:06:08 +0100
commitfbe2e13d374fcfddd234c5e107e34270976235ef (patch)
tree45e2eb8df19c06a6073492c7ae3f9357f8c1cdd3 /user/emacs
parent700e4f1e6585caef9be5a1373cb011e70fa113f9 (diff)
downloadnixfiles-fbe2e13d374fcfddd234c5e107e34270976235ef.tar.lz
nixfiles-fbe2e13d374fcfddd234c5e107e34270976235ef.tar.zst
nixfiles-fbe2e13d374fcfddd234c5e107e34270976235ef.zip
Emacs: enable npm-based tools in json files
Diffstat (limited to 'user/emacs')
-rw-r--r--user/emacs/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 331a4aa4..21b82342 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -936,7 +936,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 
 (use-package add-node-modules-path
   :config (setq add-node-modules-max-depth 6)
-  :ghook ('(feature-mode-hook js2-mode-hook typescript-mode-hook) #'add-node-modules-path))
+  :ghook ('(feature-mode-hook js2-mode-hook json-mode-hook typescript-mode-hook) #'add-node-modules-path))
 
 (use-package tide
   :after (typescript-mode company flycheck)