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