All Projects → J3RN → inf-elixir

J3RN / inf-elixir

Licence: GPL-3.0 license
An Emacs plugin for interacting with an Elixir REPL

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to inf-elixir

iextrading4j-hist
IEX Trading library to parse TOPS and DEEP multicast packets
Stars: ✭ 20 (-23.08%)
Mutual labels:  iex
pyEX
Python interface to IEX and IEX cloud APIs
Stars: ✭ 407 (+1465.38%)
Mutual labels:  iex
iex-stocks
ETL for the IEX Stocks API
Stars: ✭ 19 (-26.92%)
Mutual labels:  iex
IEX CPP API
Unofficial C++ Lib for the IEXtrading API
Stars: ✭ 34 (+30.77%)
Mutual labels:  iex
stocki
The CLI for fetching stock market data
Stars: ✭ 32 (+23.08%)
Mutual labels:  iex
pyEX-zipline
pyEX + Zipline
Stars: ✭ 22 (-15.38%)
Mutual labels:  iex
IEXSharp
IEX Cloud API for C# and other .net languages. Supports SSE streaming
Stars: ✭ 87 (+234.62%)
Mutual labels:  iex
FinMesh
A python package that brings together financial and economic data.
Stars: ✭ 20 (-23.08%)
Mutual labels:  iex
metalnetes
Create and manage multiple Kubernetes clusters using KVM on a bare metal Fedora 29 server. Includes helm + rook-ceph + nginx ingress + the stock analysis engine (jupyter + redis cluster + minio + automated cron jobs for data collection) - works on Kubernetes version v1.16.0 - 1.16.3 was not working
Stars: ✭ 37 (+42.31%)
Mutual labels:  iex
elixir auto complete
Bash Autocompletion for elixir, iex and mix
Stars: ✭ 21 (-19.23%)
Mutual labels:  iex

inf-elixir

License GPL 3 MELPA MELPA Stable CircleCI status

This is a package to allow you to pop open and interact with Elixir REPL (IEx, presently).

Features

  • Run IEx normally (inf-elixir)
  • Run IEx in a project setting (inf-elixir-project)
  • Ability to send commands to the inf buffer from a code file (inf-elixir-send-line, inf-elixir-send-region, inf-elixir-send-buffer)

TODO

  • Got a feature you want to see? Open an issue! 😄

Installation

inf-elixir is proudly distributed by MELPA and MELPA Stable. I would also strongly encourage folks to use MELPA Stable, as the releases there will be more, well, stable. In order to install the package, follow the Getting Started instructions on the MELPA website or the Getting Started instructions on the MELPA Stable website.

Once your installation is configured to use MELPA, inf-elixir can be installed with M-x package-install RET inf-elixir RET.

use-package can be used to install and/or configure inf-elixir:

(use-package inf-elixir
  :bind (("C-c i i" . 'inf-elixir)
         ("C-c i p" . 'inf-elixir-project)
         ("C-c i l" . 'inf-elixir-send-line)
         ("C-c i r" . 'inf-elixir-send-region)
         ("C-c i b" . 'inf-elixir-send-buffer)
         ("C-c i R" . 'inf-elixir-reload-module)))

Keybindings

inf-elixir intentionally ships with no keybindings by default. This grants the user the freedom to specify whatever keybindings they would like. Functions that users would probably have an interest in binding are:

  • inf-elixir :: Starts an IEx shell in a new buffer, or switches to an existing IEx shell buffer.
  • inf-elixir-project :: Starts an IEx shell in the context of the project (by default by passing the -S mix argument to iex), or switches to an existing IEx shell buffer.
  • inf-elixir-send-line :: Send the current line to the IEx shell buffer as input.
  • inf-elixir-send-region :: Send the selected region to the IEx shell buffer as input.
  • inf-elixir-send-buffer :: Send the entire current buffer to the IEx shell as input.
  • inf-elixir-reload-module :: Reload modules from current buffer using IEx.Helpers.r/1.

An example of keybindings is included in the use-package declaration above.

Development

I am not yet using any kind of build tool (like Eldev or Cask) to develop this plugin. Generally speaking, working with the code involves:

  1. Clone the git repository
  2. Make some changes
  3. Load your changes with M-x load-file RET inf-elixir.el RET
  4. Verify your changes worked
  5. Send a PR 🙏

There are some tests written with ERT that can be run with this command:

$ emacs -batch -l ert -l inf-elixir.el -l tests/inf-elixir-test.el -f ert-run-tests-batch-and-exit
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].