Daniel Colascione <dancol@dancol.org> writes:

Anyway, I think making the cursor change from a mode hook is a better
solution.

I've updated the patch which should use the mode hook instead using
post-command-hook or idle timers (and allows (implicitly) to user use
post-command-hook (but that is user responsibility add it or not)).

Also this should refresh the cursor while switching windows.

However I've deleted the function/lambdas support as conditions because
i found it problematic.

I've test it only for overwrite-mode, I ask if anyone wants to give it a try.