achempion

achempion

Emacs like editor in Elixir

Hi,

I’m exploring the idea of writing Emacs-like terminal editor in Elixir.

The base idea is to run mix run --no-halt and then use libraries like
GitHub - ndreynolds/ratatouille: A TUI (terminal UI) kit for Elixir · GitHub to manage terminal window.

You could recompile/extend your editor on the fly by running r(Module)
or use the helper IEx.Helpers.recompile().

The issue I have is I’m getting compilation messages to the editor
window when I run recompilation. I think the source is from
Mix.Utils.compiling_n/2. Also, things like IO.inspect/1 will write
directly to STDOUT.

I would like to redefine that to make it write to a different place,
basically to some variable/gen server when I can view it later by
issuing a command from editor.

So, my questions is basically this:

  • is it possible to write Emacs in Elixir (in terms of live programming
    environment)

  • do I need to compile to a final app or it’s possible only when running in
    development mode, i.e. having tools like mix/iex/recompilation

  • should I write custom logging backend for Mix.shell().info/1, I
    don’t want to silence it with MIX_QUIET (but it looks like I’m still
    can’t silence compiling messages with this ENV variable)

Thank you

Where Next?

Popular in Questions Top

vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
Emily
I have VueJS GUIs with the project generated using Webpack. I have Elixir modules that will need to be used by the VueJS GUIs. I forese...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New

Other popular topics Top

KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36820 110
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
albydarned
Hello all! I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New

We're in Beta

About us Mission Statement