summary refs log tree commit diff stats
path: root/emacs/.emacs.d/main.el
diff options
context:
space:
mode:
authorAlan Pearce2018-02-02 15:25:55 +0100
committerAlan Pearce2018-02-02 15:25:55 +0100
commit11b419661896ab2ecb394d540670ff5163a37757 (patch)
tree67a9bf3ff8a7787ca98e047a0813e7d684e40bb1 /emacs/.emacs.d/main.el
parentfc2a4fd893a9eee11d50716a775cf4efcc69dc2a (diff)
downloadnixfiles-11b419661896ab2ecb394d540670ff5163a37757.tar.lz
nixfiles-11b419661896ab2ecb394d540670ff5163a37757.tar.zst
nixfiles-11b419661896ab2ecb394d540670ff5163a37757.zip
Emacs: run add-node-modules-path also for typescript
Diffstat (limited to 'emacs/.emacs.d/main.el')
-rw-r--r--emacs/.emacs.d/main.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index 10dbe513..81f3f0c6 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -2148,7 +2148,9 @@ With prefix TO-CURRENT-BUFFER, insert command output into buffer."
 
 (use-package add-node-modules-path
   :config (progn
-            (define-hook-helper js2-mode ()
+            (create-hook-helper js2-mode ()
+              :hooks (js2-mode-hook
+                      typescript-mode-hook)
               :name node-modules-flycheck
               (add-node-modules-path)
               (when (executable-find "eslint")