用于“\C-”的Emacs键绑定 [英] Emacs keybinding for "\C-' "

查看:114
本文介绍了用于“\C-”的Emacs键绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将函数设置为\C-?当我尝试做:

How do you set a function to \C-' ? when I try to do :

(global-set-key "\C-'" 'myfunct) 

它给了我字符串中无效的修饰符。

it gives me "Invalid modifier in string".

推荐答案

什么是 \C - '?当您输入反斜杠+ c +报价时,是否想要发生什么?或者你的意思是 C - '(control + quote)?如果是后者(我猜是这样),那么你应该使用

What is \C-'? Do you want something to happen when you type backslash+c+quote? Or do you mean C-' (control+quote)? If it's the latter (and I guess it is), then you should use

(global-set-key (kbd "C-'") 'myfunct)

这篇关于用于“\C-”的Emacs键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆