abo-abo / ace-window

Quickly switch windows in Emacs
970 stars 86 forks source link

separate minibuffer face #180

Closed dradetsky closed 5 years ago

dradetsky commented 5 years ago

i use ace-window in a setup with many monitors and many separate frames. as a result, i found it useful to modify aw-leading-char-face so it was huge and easy to see. the problem was that if i ended up switching between windows while using the minibuffer, i would try to switch back to it, but be unable because i couldn't see the letter i was supposed to press to switch to it. and with so many possibilities, working out the letter it might be was too much trouble.

so instead, i define a separate face, which the user can optionally set to use for minibuffers. i can leave this one the normal size, and the problem goes away.

abo-abo commented 5 years ago

Thanks. I think it's better to have aw-minibuffer-separate-face point to 'aw-leading-char-face. Then the user can customize it to point to 'aw-minibuffer-leading-char-face or even something else.

Could you please update the PR?

dradetsky commented 5 years ago

I mean, if you want me to do it that way, I will. I thought of that, but didn't do it originally because:

But this is your repo, not mine, and you're clearly a much better elisp programmer than me. So i'm going to do it that way too. But maybe teach me something: why do you want it that way?

abo-abo commented 5 years ago

Thanks. I rewrote your commit with some simplifications. Please test if it still works.

Generally, I prefer features to have more flexibility. Often, that means avoiding boolean flags. However, in this case, it's appropriate to just have a separate face and have the users / themes customize that.

abo-abo commented 5 years ago

Also, only the most important customization should go into README. The user can discover the rest with M-x customize.

dradetsky commented 5 years ago

@abo-abo yep, works fine. I agree your rewrite is better. I'm just superstitious about changing APIs i guess.