作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
如何让 Emacs 识别 M-C (meta-shift-c),而不是将其翻译为 m-c?
目前,当我执行 C-h k M-C
时,我得到:M-c(从 M-C 翻译而来)运行命令大写单词。
如何让它不将 M-C 翻译为 M-c?
最佳答案
只需使用修饰符 S
(Shift) 在你的键绑定(bind)中。例如:
(global-set-key "\M-\S-c" 'foobar)
如果没有任何内容明确绑定(bind)到已移动的键,则 Emacs 会自动将其转换为未移动的键。
来自 Elisp 手册,节点 Key Sequence Input
:
If an input character is upper-case (or has the shift modifier) and has no key binding, but its lower-case equivalent has one, then
read-key-sequence' converts the character to lower case. Note that
lookup-key' does not perform case conversion in this way.
关于emacs - 如何让 Emacs 按键绑定(bind)识别大写字母?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22154688/
我是一名优秀的程序员,十分优秀!