help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Highlighting parentheses when matching parentheses resides outside v


From: Daniel Martín
Subject: Re: Highlighting parentheses when matching parentheses resides outside visible window
Date: Wed, 26 Oct 2022 12:21:34 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin)

Heime <heimeborgia@protonmail.com> writes:

> Although emacs is capable of highlighting parentheses, when the matching 
> parentheses
> is located outside the visible window, there is no chance to see where a 
> closing 
> parenthesis actually matches.  Can there be a solution to this?

There are many ways to achieve that:

- C-M-b C-M-f to move backward and forward a balanced expression.

- Delete and reinsert the parenthesis.  You will see in the echo area
  the text "Matches ..." that informs you about the matching
  parenthesis.

- In Emacs 29, I introduced a new defcustom for show-paren-mode,
  show-paren-context-when-offscreen, which will automatically show the
  matching parenthesis information in the echo area when the point is
  next to the closing parenthesis, without needing to reinsert it.
  


reply via email to

[Prev in Thread] Current Thread [Next in Thread]