简体   繁体   English

Emacs 24中的班次选择不会突出显示文本

[英]Shift selection in Emacs 24 does not highlight text

I must be stupid, but I just switched to Emacs 24, and holding Shift while moving the point no longer highlights text. 我一定是傻瓜,但我只是切换到Emacs 24,并且在移动点时按住Shift不再突出显示文本。 Mouse selection works as before. 鼠标选择与以前一样。 What am I missing? 我错过了什么? Did I turn it off by chance? 我偶然把它关掉了吗? Or has Shift selection been deemed unergonomical so we have some other, better keyboard-based selection at hand? 或者Shift选择被认为是无人机的,所以我们还有一些其他更好的基于键盘的选择吗?

Shift selection is enabled by default in Emacs 24. 默认情况下,在Emacs 24中启用了班次选择。

You can always run emacs -Q to disable your init file and any other default libraries, in order to determine what Emacs' default behaviour is. 您始终可以运行emacs -Q来禁用您的init文件和任何其他默认库,以确定Emacs的默认行为。

You can also run emacs -q which will disable only your init file (other system-wide init files can be loaded). 您还可以运行emacs -q ,它将仅禁用您的init文件(可以加载其他系统范围的init文件)。

If the feature works without your init file and does not work with it, you can then start to narrow down what part of your init file is at fault (often by commenting out functionality until the feature starts working as expected -- note Drew's comment). 如果该功能在没有你的init文件的情况下工作并且无法使用它,那么你可以开始缩小你的init文件的哪个部分有问题(通常通过注释掉功能直到功能开始按预期工作 - 注意Drew的评论) 。

In this case I suggest that you firstly verify (using Ch v ) that the shift-select-mode variable is non- nil (when running with your normal configuration), as a nil value means that shift selection is disabled. 在这种情况下,我建议你首先验证(使用 V)shift-select-mode变量是不nil (你的正常配置中运行时),作为一个nil值意味着换档选择是禁用的。

我还发现查看load-path变量Ch v load-path是有用的,它将我引导到了culprits,旧的elpa包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM