dotfiles/.emacs.d/conf.d/004-typescript.el

15 lines
460 B
EmacsLisp

(add-hook `typescript-mode-hook
(lambda ()
(tide-setup)
(flycheck-mode +1)
(setq flycheck-check-syntax-automatically `(save mode-enabled))
(eldoc-mode +1)
(company-mode-on)))
(add-hook 'before-save-hook `tide-format-before-save)
;; format options
(setq tide-format-options
'(:insertSpaceAfterFunctionKeywordForAnonymousFunctions t
:placeOpenBraceOnNewLineForFunctions nil))