From bf4baf0646489d9f7f5b3327571bb6dd4915f526 Mon Sep 17 00:00:00 2001 From: JAremko Date: Wed, 27 Apr 2016 12:57:56 +0300 Subject: [PATCH] make tsfmt use config file --- layers/+lang/typescript/packages.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/layers/+lang/typescript/packages.el b/layers/+lang/typescript/packages.el index ce8d7ba52..49a4b255e 100644 --- a/layers/+lang/typescript/packages.el +++ b/layers/+lang/typescript/packages.el @@ -91,7 +91,11 @@ (progn (with-current-buffer outputbuf (erase-buffer)) (write-region nil nil tmpfile) - (if (zerop (apply 'call-process "tsfmt" nil outputbuf nil (list "--baseDir=." tmpfile))) + (if (zerop (apply 'call-process "tsfmt" nil outputbuf nil + (list (format + "--baseDir='%s' --" + default-directory) + tmpfile))) (let ((p (point))) (save-excursion (with-current-buffer (current-buffer)