如何使向前字,向后字,治疗强调作为一个词的一部分? [英] How to make forward-word, backward-word, treat underscore as part of a word?
问题描述
在我的C#模式下,M-B和M-F是必然{后退,前进} -word。
In my C# mode, M-b and M-f are bound to {backward,forward}-word.
但这些东西停留在下划线,我有时用作为成员变量preFIX。
But these things stop at underscores, which I use sometimes as a prefix on member variables.
如何让emacs的治疗下划线作为单词字符?
How do I get emacs to treat the underscore as a word character?
推荐答案
由于怀远提到的,你定义修改语法表。
这就是说,他贴出修改当前的表...
As huaiyuan mentioned, you ned to modify your syntax table. That said, what he posted modifies the current table...
每个语言都有一个语法表,例如对于C ++,你可以做
Each language has a syntax table, e.g. For c++, you could do
(修改语法入境_WC ++ - 模式语法表)
我不知道什么是你的C#模式的用途,但快速的的Mx中肯
与语法表的仰视
应该帮助你找出...
I don't know what "your c# mode" uses, but a quick M-x apropos
with a look up of syntax-table
should help you find out...
这篇关于如何使向前字,向后字,治疗强调作为一个词的一部分?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!