summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2024-06-23 15:29:48 +0200
committerAlan Pearce2024-06-23 15:29:48 +0200
commita04964835bdde663ce69cddcd696bf043c2ec7f3 (patch)
tree1411784d445c344d8ae2b270da7431dab20aa66c
parent84d05b287083f8754d6b3871a7577997444f4b97 (diff)
downloadnixfiles-a04964835bdde663ce69cddcd696bf043c2ec7f3.tar.lz
nixfiles-a04964835bdde663ce69cddcd696bf043c2ec7f3.tar.zst
nixfiles-a04964835bdde663ce69cddcd696bf043c2ec7f3.zip
emacs: remove add-node-modules-path (use direnv)
-rw-r--r--user/emacs/init.el10
-rw-r--r--user/settings/development/javascript.nix4
2 files changed, 0 insertions, 14 deletions
diff --git a/user/emacs/init.el b/user/emacs/init.el
index 3abd3633..15b92090 100644
--- a/user/emacs/init.el
+++ b/user/emacs/init.el
@@ -1212,16 +1212,6 @@ _C-k_: prev  _u_pper              _=_: upper/lower       _s_mart resolve
       (call-interactively #'consult-lsp-symbols)
     (call-interactively #'consult-eglot-symbols)))
 
-;; Inside a javascript project, it's common to install tools locally to
-;; 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 ('(feature-mode-hook
-            js-base-mode-hook
-            json-ts-mode-hook
-            typescript-ts-mode-hook)
-          #'add-node-modules-path))
 
 ;;;; Reformat on save
 
diff --git a/user/settings/development/javascript.nix b/user/settings/development/javascript.nix
index 4d196cb4..fa418cc1 100644
--- a/user/settings/development/javascript.nix
+++ b/user/settings/development/javascript.nix
@@ -23,10 +23,6 @@
     };
   };
 
-  programs.emacs.extraPackages = epkgs: (with epkgs; [
-    add-node-modules-path
-  ]);
-
   home.shellAliases = {
     bn = "bun";
     bni = "bun install";