Skip to content

Latest commit

 

History

History
79 lines (71 loc) · 3.41 KB

README.org

File metadata and controls

79 lines (71 loc) · 3.41 KB

lang/elixir

Table of Contents

Description

This module provides support for Elixir programming language via alchemist.el or elixir-ls.

Module flags

  • +lsp Enable LSP support. Requires elixir-ls.

Plugins

Prerequisites

You should have Elixir installed, for example, via your distribution’s package manager or a version management tool such as asdf.

If you want to add support for LSP (:tools lsp), be sure to install elixir-ls and enable :tools lsp in your init.el.

To support linting with credo, add :checkers syntax to your init.el

Install Elixir

With asdf

asdf plugin-add elixir
asdf install elixir 1.9.1

Arch Linux

sudo pacman -S elixir

Gentoo Linux

sudo emerge -v dev-lang/elixir

openSUSE

sudo zypper install elixir

See https://elixir-lang.org/install.html for other operating systems

Features

  • Code completion (:completion company)
  • Documentation lookup (:tools lookup)
  • Mix integration
  • Phoenix support
  • iex integration (:tools eval)
  • Syntax checking (:checkers syntax, using flycheck-credo~)

Appendix

Commands

exunit-mode

The exunit-mode prefix is SPC m t. Here is some examples:

commandkey / ex commanddescription
exunit-verify-allSPC m t aRuns exunit on all files
exunit-rerunSPC m t rRe-runs last exunit command
exunit-verifySPC m t vRuns exunit on current file
exunit-verify-singleSPC m t sRuns exunit for the item on cursor
exunit-toggle-file-and-testSPC m t tSwitch between implementation and test
exunit-toggle-file-and-test-other-windowSPC m t TSwitch between implementation and test in other window