Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

show-paren-mode -- stay visible while inside the braces / brackets

Tags:

emacs

Is there any custom modification that keeps the braces highlighted the entire time that the cursor is within the two braces?

The default behavior is to only highlight the braces momentarily and then it disappears once the cursor is inside the braces.

like image 807
lawlist Avatar asked Jan 14 '23 09:01

lawlist


2 Answers

Take a look at Higlight Parentheses mode, which does exactly what you ask for in that response to Trey Jackson's comment.

Highlight Parentheses mode example

The colors are, of course, configurable.

like image 94
Inaimathi Avatar answered Feb 20 '23 05:02

Inaimathi


You might also want to take a look at hl-sexp (available on MELPA). This highlights the innermost sexp that point is inside, making it easy to spot the brackets.

current sexp highlighted

(rainbow delimiters are also visible in this screenshot)

like image 41
Wilfred Hughes Avatar answered Feb 20 '23 05:02

Wilfred Hughes