make tsfmt use config file

This commit is contained in:
JAremko 2016-04-27 12:57:56 +03:00 committed by syl20bnr
parent adebb01358
commit bf4baf0646

View file

@ -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)