shinjin
shinjin

Reputation: 3027

How can I prevent the cursor from jumping when I close parentheses in Emacs?

Is there a way to change Emacs' behavior when closing parentheses/bracket?

Right now, the cursor will jump to the opening bracket for a few seconds and will jump back after a while or when I start typing. I find this jumping back and forth really annoying.

Is there a way, to either

Upvotes: 5

Views: 796

Answers (1)

Dan
Dan

Reputation: 12665

Try putting

(show-paren-mode 1)
(setq blink-matching-delay 0.3)

in your .emacs or .emacs.d/init.el.

This prevents the jumping and highlights the matching pair.

Upvotes: 6

Related Questions