Emacs:在 CUA 模式下禁用班次选择
我设法通过 (set-variable 'shift-select-mode nil)
禁用内置的shift-selection。我喜欢 CUA 模式的 C-Ret
列选择。但 CUA 会自动启用换档选择(但似乎不是通过变量 shift-select-mode
)。
- 那么,是否可以在 CUA 模式下禁用换档选择?
- 或者:有没有办法专门使用 CUA 模式的列选择功能,即没有任何其他 CUA 功能?
I managed to disable the built-in shift-selection via (set-variable 'shift-select-mode nil)
. And I like the C-Ret
-column-selection of CUA-mode. But CUA automatically enables shift-selection (but seemingly not via the variable shift-select-mode
).
- So, is there a possibility to disable shift-selection within CUA-mode?
- Or: Is there a way to use the column-selection-feature of CUA-mode exclusively, i.e. without any other CUA-things?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这不是一个解决方案,但仅供参考...
我注意到 cua-mode 的帮助中提到的这个变量
是这样做的:
This isn't a solution, but FYI...
I noticed this variable mentioned in the help for
cua-mode
cua-mode
does this:具体来说,要禁用
cua-mode
的移位选择,请在打开cua-mode< 之前将以下内容添加到您的初始化文件(例如 .emacs)中/code>:
最初回答https://superuser.com/a/77453/223457
Specifically, to disable the shift-selection for
cua-mode
, add the following to your init file (e.g. .emacs) prior to turning oncua-mode
:Originally answered https://superuser.com/a/77453/223457
要仅从 Cua 启用矩形(列)编辑,您可以使用以下命令(来自 emacs-fu)
(setq cua-enable-cua-keys nil) ;;仅适用于矩形
(cua-模式 t)
To only enable rectangle (column) editing from Cua you can use the following (from emacs-fu)
(setq cua-enable-cua-keys nil) ;; only for rectangles
(cua-mode t)