Skip to content

Latest commit

 

History

History
61 lines (49 loc) · 2.1 KB

File metadata and controls

61 lines (49 loc) · 2.1 KB

mason.el MELPA

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 RET to install packages.
  • M-x mason-manager RET to open package manager.

Screenshots

Mason manager Package info
mason-manager Package info
M-x mason-install M-x mason-log
mason-install mason-log

Requirements

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.

Installation

mason.el is available on MELPA, install it in your favorite way and call (mason-setup) to setup the environment.

Install it with use-package

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

Snippets

Programmatically installing packages

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.