Projectile Elixir is a minor mode for working with the Elixir projects in GNU Emacs. Internally it is basically a 'port' of Projectile Rails to Elixir, which in turn relies on Projectile.
It means that you can use Projectile's commands for greping (or acking) files, run tests, switch between projects, etc.
With Projectile Elixir you are able to:
- navigate through elixir project files (modules, tests)
- see some frequently used non-elixir keywords highlighted
Once you have setup Melpa you can use package-install
command to install Projectile Elixir. The package name is projectile-elixir
.
To make it start alongside projectile-mode
:
(add-hook 'projectile-mode-hook 'projectile-elixir-on)
That will start it only if the current project is an Elixir project.
Probably you should read Projectile's README on setting up the completion system, caching and indexing files. Although the default settings are quite sensible and you should be ready to go without much tweaking.
Command | Keybinding | Description |
---|---|---|
projectile-elixir-find-module | C-c x m | Find a model using projectile-completion-system . |
projectile-elixir-find-test | C-c x t | Find a spec using projectile-completion-system . |
projectile-elixir-find-current-module | C-c x M | Go to a module connected with the current test. |
projectile-elixir-find-current-spec | C-c x T | Go to a spec connected with the current module. |
projectile-elixir-goto-mix-exs | C-c r g g | Go to mix.exs file. |
projectile-elixir-goto-config-exs | C-c r g r | Go to config/config.exs file. |
projectile-elixir-goto-test-helper | C-c r g d | Go to test/test_helper.exs file. |
- magit to interact with git.