Change the cursor color and type when Emacs is idle.