[英]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? 有没有办法在关闭括号/括号时改变Emacs的行为?
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 还有办法吗?
Try putting 试试看
(show-paren-mode 1)
(setq blink-matching-delay 0.3)
in your .emacs
or .emacs.d/init.el
. 在
.emacs
或.emacs.d/init.el
。
This prevents the jumping and highlights the matching pair. 这可以防止跳跃并突出显示匹配对。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.