I use (show-paren-mode 1)
to get help seeing where parentheses are. I have (setq show-paren-delay 2)
to prevent intrusive highlighting when I don't need it. This is how it works now:
- Put cursor on a parenthesis. After 2 seconds, both parentheses highlight
- Use cursor keys. Highlighting stays on as long as I keep cursoring.
- Stop moving around. Highlighting eventually disappears, after 2 seconds.
It should work like this:
- Same as above.
- Use cursor keys. Highlighting disappears immediately!
The rationale is that I need highlighting as an aide to find the matching parenthesis, or to detect imbalance. Once I've established this, the highlighting is no longer useful and I want it gone.
emacs -Q
(no init file)? I don't. I don't see any such delay. If the cursor is moved away from a paren the highlighting ceases immediately, for me. If you don't see the problem without your init file, bisect the file to find the culprit.(setq show-paren-delay 2) (show-paren-mode 1)
. The problem, as far as I can tell, is thatshow-paren-delay
applies not only to the paren highlighting (which is what OP wants, I guess), but also to the unhighlighting.M-x report-emacs-bug
.) If not, is it not OK for OP to just remove that delay customization?