[英]Disabling transient-mark-mode
In my .emacs
file, I have 在我的
.emacs
文件中,我有
(setq transient-mark-mode nil)
and yet transient-mark-mode
is activated when I start up Emacs. 然而,当我启动Emacs时,会激活
transient-mark-mode
。 Calling transient-mark-mode
gives the message "transient-mark-mode disabled", but Control - Space still starts highlighting a region. 调用
transient-mark-mode
会给出消息“瞬态标记模式禁用”,但控制 空间仍然会突出显示一个区域。
Is there a way to turn this off? 有没有办法把它关掉?
You might have cua-mode
enabled as well which has similar region highlighting to transient-mark-mode
. 您可能也启用了
cua-mode
,其中区域突出显示为transient-mark-mode
。 To test this just Mx cua-mode
(to toggle it on/off) and see if it disables the highlighting. 要测试这个只是
Mx cua-mode
(打开/关闭它)并查看它是否禁用突出显示。
From Ch f cua-mode
help: 从
Ch f cua-mode
帮助:
CUA mode manages Transient Mark mode internally.
CUA模式在内部管理瞬态标记模式。 Trying to disable Transient Mark mode while CUA mode is enabled does not work;
在启用CUA模式时尝试禁用瞬态标记模式不起作用; if you only want to highlight the region when it is selected using a shifted movement key, set `cua-highlight-region-shift-only'.
如果您只想在使用移动的移动键选择区域时突出显示该区域,请设置“cua-highlight-region-shift-only”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.