Jose A. Ortega Ruiz-2 wrote:
>
> Assuming you're using haskell-mode, does
>
> M-x inferior-haskell-load-and-run
>
This seems to be exactly what I want.
Added couple of things:
(defun haskell-run-preserve-focus ()
"Load and run but preserve focus."
(interactive)
(let ((buf (current-buffer)))
(inferior-haskell-load-and-run inferior-haskell-run-command)
(end-of-buffer)
(switch-to-buffer-other-window buf)))
Despite the end-of-buffer call for ghci buffer, couple of lines are always
hidden after subsequent invoking of the haskell-run-preserve-focus
function, albeit it is possible to scroll down with mouse.
Thank you and all who replied!
Zura
--
View this message in context:
http://old.nabble.com/Run-haskell-program-in-emacs-without-typing-%22main%22-in-the-ghci-buffer.-tp28368541p28381754.html
Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.
_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe