summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-11-08 13:03:58 +0100
committerAlan Pearce2019-11-08 13:03:58 +0100
commit1deaf913d735d5052db37fce0aa8b58293216427 (patch)
treece837ad5d015b3db3d489c0ba0639af23e5610fb
parenta17a75c72e355528a46e0beaea569159ab2a5d4b (diff)
downloadnixfiles-1deaf913d735d5052db37fce0aa8b58293216427.tar.lz
nixfiles-1deaf913d735d5052db37fce0aa8b58293216427.tar.zst
nixfiles-1deaf913d735d5052db37fce0aa8b58293216427.zip
Emacs: limit node_modules recursive upwards search
-rw-r--r--user/emacs/.emacs.d/init.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/user/emacs/.emacs.d/init.el b/user/emacs/.emacs.d/init.el
index cf50c204..f3892db7 100644
--- a/user/emacs/.emacs.d/init.el
+++ b/user/emacs/.emacs.d/init.el
@@ -771,6 +771,7 @@ _p_rev       _u_pper              _=_: upper/lower       _r_esolve
 ;; the project.  This will allows emacs to find their executables.
 
 (use-package add-node-modules-path
+  :config (setq add-node-modules-max-depth 6)
   :ghook ('(js2-mode-hook typescript-mode-hook) #'add-node-modules-path))
 
 ;;;; Reformat on save