You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey @alejandrogallo I was also thinking why wasn't there interactive interpreting feature for nix-mode. Just now, I went through python and ess way of evaluating lines.
Came up with an function:
(defunnix-eval-line ()
"Evaluates the line at point in nix-repl."
(interactive)
(let* ((start (line-beginning-position))
(end (line-end-position))
(msg (format"%s" (buffer-substring start end))))
(pop-to-buffer"*Nix-REPL*")
(insert msg)
(comint-send-input)
(other-window1)))
With little more work, we can bring similar function like, nix-eval-buffer, nix-eval-region (I thing, line and region should be made as dwin)
Note: It does not start nix-repl, instead uses existing one.
Let's see if author wants something like this.
Maybe I'm just missing something, but I could not find a functionality like this
for instacne
is there something planned to send input and so on to the repl?
The text was updated successfully, but these errors were encountered: