jcollard / elm-mode

Elm mode for emacs
GNU General Public License v3.0
373 stars 67 forks source link

ability to evaluate code via elm-repl-push{-decl} without switching to the REPL buffer #113

Open berkan opened 7 years ago

berkan commented 7 years ago

This change allows elm-repl-push and elm-repl-push-decl to work without switching to the REPL buffer.

The use-case I'm addressing is to evaluate code directly from a source code buffer, with minimum disruptions.

The details of the change are:

purcell commented 7 years ago

Thanks. This solution is greatly overthinking things IMO, and adds unnecessary complexity: it would be conceptually much simpler to just add a separate command that evaluates the selected region and prints the result in the minibuffer.