From 11b419661896ab2ecb394d540670ff5163a37757 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 2 Feb 2018 15:25:55 +0100 Subject: Emacs: run add-node-modules-path also for typescript --- emacs/.emacs.d/main.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'emacs') diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index 10dbe51..81f3f0c 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") -- cgit 1.4.1