gleam-ts-mode is a major mode for
Emacs 29 or higher.
If you are using MELPA you can install it like so:
(use-package gleam-ts-mode
:ensure t)
Type M-x eglot RET in a Gleam project to start the language server,
or add a hook to start it automatically when you open a Gleam file:
(use-package gleam-ts-mode
:ensure t
:hook (gleam-ts-mode . eglot-ensure))
See the documentation for the mode for other installation methods and considerations.