mason.el is installer for LSP servers, DAP servers, linters and formatters, inspired by mason.nvim.
Package registry at mason-org/mason-registry.
M-x mason-install RETto install packages.M-x mason-manager RETto open package manager.
![]() |
![]() |
mason-manager |
Package info |
![]() |
![]() |
mason-install |
mason-log |
mason.el will call external programs such as cargo and npm to install the packages,
or tar and gzip to extract downloaded archives.
Call (mason-doctor) to see the requirements of each package type.
mason.el is available on MELPA, install it in your favorite way
and call (mason-setup) to setup the environment.
(use-package mason
:ensure t
:config
(mason-setup))Install it in Doom Emacs:
Add to DOOMDIR/packages.el:
(package! mason)Add to DOOMDIR/config.el:
(use-package! mason
:config
(mason-setup))mason.el can be used to install packages programmatically:
(mason-setup
(dolist (pkg '("basedpyright" "jdtls" "clangd"))
(unless (mason-installed-p pkg)
(ignore-errors (mason-install pkg)))))This will (try to) install the missing packages.



