Skip to content

sirikid/iex-mode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

builds.sr.ht status

This file is automatically generated from README.org. Do not edit manually.

iex-mode

This is a simple comint wrapper around IEx.

Installation

Just drop the file to the load-path or use one of the methods below.

quelpa

(quelpa
 '(iex-mode
   :fetcher git
   :url "https://git.sr.ht/~sokolov/iex-mode"))

Setup

use-package+quelpa-use-package

Setup and installation together.

(use-package iex-mode
  :quelpa (iex-mode :fetcher git :url "https://git.sr.ht/~sokolov/iex-mode")
  :bind
  (:map elixir-mode-map
    ("C-c x i" . iex-run)
    ("C-c x p" . iex-run-script)))

use-package

(use-package iex-mode
  :after elixir-mode
  :bind
  (:map elixir-mode-map
    ("C-c C-z" . iex-run)))

(use-package iex-mode
  :after projectile
  :config
  (defadvice projectile-run-project
      (around projectile-run-iex (fn arg))
    (if (eq 'elixir (projectile-project-type))
        (iex-run-script
         (projectile-project-root)
         (read-shell-command "iex> " "iex -S mix"))
      (funcall fn arg))))

Usage

You can run iex in the directory of current buffer with M-x iex-run.

You can also run iex -S mix in the project root with M-x iex-run-script.

In both cases you can edit the exact command to run.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published