tonini / alchemist.el

Elixir Tooling Integration Into Emacs
http://www.alchemist-elixir.org
906 stars 103 forks source link

Add function to compile buffer in iex and go #262

Closed jmromer closed 7 years ago

jmromer commented 7 years ago

Introduces alchemist-iex-compile-this-buffer-and-go, to compile the current buffer in iex and immediately jump to iex.

(I found myself reaching for functionality similar to alchemist-iex-send-current-line-and-go and alchemist-iex-send-region-and-go, but for the whole buffer.)

;; alchemist-iex.el L154-L158 (21d87f06)

(defun alchemist-iex-compile-this-buffer-and-go ()
  "Compiles the current buffer in the IEx process and jump to the buffer."
  (interactive)
  (alchemist-iex-compile-this-buffer)
  (pop-to-buffer (process-buffer (alchemist-iex-process))))

[source]

tonini commented 7 years ago

Great! Thanks for the contribution! ❤️ 💙 💛