Emacs personal configuration
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

30 lines
737B

  1. ;;; package --- Typescript configuration
  2. ;;; Commentary:
  3. ;;; Code:
  4. (require-package 'tide)
  5. (defun setup-tide-mode ()
  6. (interactive)
  7. (tide-setup)
  8. (flycheck-mode +1)
  9. (setq flycheck-check-syntax-automatically '(save mode-enabled))
  10. (eldoc-mode +1)
  11. (tide-hl-identifier-mode +1)
  12. ;; company is an optional dependency. You have to
  13. ;; install it separately via package-install
  14. ;; `M-x package-install [ret] company`
  15. (company-mode +1))
  16. ;; aligns annotation to the right hand side
  17. (setq company-tooltip-align-annotations t)
  18. ;; formats the buffer before saving
  19. (add-hook 'before-save-hook 'tide-format-before-save)
  20. (add-hook 'typescript-mode-hook #'setup-tide-mode)
  21. (provide 'init-typescript)
  22. ;;; init-typescript ends here