abo-abo / ace-window

Quickly switch windows in Emacs
979 stars 87 forks source link

Behavior of cursor-in-non-selected-windows #84

Closed eflanigan00 closed 7 years ago

eflanigan00 commented 7 years ago

I use the following for non selected windows. I have problems reading the ace window characters when the hollow square is on the first char of the first line. Is there a way to not display the cursor-in-non-selected-windows when ace-window is called?

(setq-default cursor-in-non-selected-windows 'hollow)

abo-abo commented 7 years ago

You can advice aw-select and let-bind cursor-in-non-selected-windows to nil:

(define-advice aw-select (:around (fun &rest r) cursor-stuff)
  (let ((cursor-in-non-selected-windows nil))
    (apply fun r)))
eflanigan00 commented 7 years ago

I posted this on the wiki. Clean and easy solution that works perfect. Thank you abo-abo!

abo-abo commented 7 years ago

You're welcome