Skip to content

edmz/projectile-elixir

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Projectile Elixir Build Status

Synopsis

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

Setup

Installation

Melpa

Once you have setup Melpa you can use package-install command to install Projectile Elixir. The package name is projectile-elixir.

Usage

Hooking up with Projectile

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.

Interactive commands

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.

Miscellaneous

  • magit to interact with git.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published