Enable geiser and guile geiser. Add lsp-mode. Small tweaks to javascript modes. Add elpy.
19 lines
544 B
EmacsLisp
19 lines
544 B
EmacsLisp
(defun setup-tide-mode ()
|
|
(interactive)
|
|
(tide-setup)
|
|
(flycheck-mode +1)
|
|
(setq flycheck-check-syntax-automatically '(save mode-enabled))
|
|
(eldoc-mode +1)
|
|
(tide-hl-identifier-mode +1)
|
|
;; company is an optional dependency. You have to
|
|
;; install it separately via package-install
|
|
(company-mode +1))
|
|
|
|
;; aligns annotation to the right hand side
|
|
(setq company-tooltip-align-annotations t)
|
|
|
|
;; formats the buffer before saving
|
|
(add-hook 'before-save-hook 'tide-format-before-save)
|
|
|
|
(add-hook 'typescript-mode-hook #'setup-tide-mode)
|