On Sun, Jan 30, 2011 at 11:30 AM, JETkoten <[email protected]> wrote:

> The way it defaults to now is that the cursor stays in the topmost editing
> half of the split screen, and I inevitably begin typing and mess up my code
> and have to do some backspacing and then mouse over to the bottom half.
>
> :)
>
> I checked on #haskell and #emacs last night, and someone suggested either
> "doing it with elisp" or keyboard macros, but I'm not sure how to do the
> first, and I think the second is not what I'm looking for.
>
> I'd like for haskell-mode to otherwise remain the same, and to still use the
> same C-c C-l key sequence, but I'd just like it to always be set up to add
> the step in the load sequence of jumping the cursor focus down to the lower
> half of the split for me.

>From my .emacs;

                                   ;Default behaviour is to always
jump to the GHCi window.
                                   ;Jump back automatically unless errors.
                                   (defadvice haskell-ghci-load-file
(after name)
                                     (other-window 1))
                                   (ad-activate 'haskell-ghci-load-file t)

-- 
gwern
http://www.gwern.net

_______________________________________________
Haskell-Cafe mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to