[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 20 Jun 2022 16:20:28 +0200 (CEST)
Jun 20, 2022, 13:36 by firstname.lastname@example.org:
>> Date: Mon, 20 Jun 2022 15:10:36 +0200 (CEST)
>> From: email@example.com
>> Cc: firstname.lastname@example.org
>> Could this simply be included as a style for `show-paren-style`? Showing
>> the parens
>> wherever point you are in paren would also be useful.
> No, because this isn't a style, it's orthogonal to the style.
> Style says _how_ to highlight, whereas this variable says _when_ to
Which means that one can have `(setq 'show-paren-style 'parenthesis)` and
`(setq 'show-paren-when-point-inside-paren t)` working concurrently.
The following are just some thoughts.
Emacs can do without variable `show-paren-when-point-inside-paren`. Because
`(setq 'show-paren-style 'parenthesis)` highlights parentheses depending on the
position of point. This holds also for
`(setq 'show-paren-style 'expression)` and `(setq 'show-paren-style 'mixed)`
(the latter requiring matching parenthesis to be outside the window pane).
Have also noticed that with `(setq 'show-paren-style 'parenthesis)` and `(setq
'show-paren-style 'mixed)`, the style overrides the
An enhancement to `(setq 'show-paren-style 'expression)` can also be made
such that the sexp at the current point can be highlighted. Thus, if cursor is
between two sexp's inside a structure (e.g. an `if` condition) the entire
structure can be highlighted.