我的 .emacs 文件中有很多自定义内容:字体、颜色、窗口大小、键绑定等。所有这些都有效。
然后在最后,我只是添加了一个:(setq case-fold-search nil)
。这是一个变量,当设置为nil
应该使搜索在所有 emacs 模式下区分大小写。这不适合我。
Setting case-fold-search
to nil
在单个缓冲区中有效,但是当我将其设置为.emacs
,它不起作用。 setq 声明是否有原因.emacs
有时可能不起作用?我应该如何尝试调试该问题?
这是缓冲区局部变量的正常行为。setq-default
可用于为它们建立默认值。
You can determine that a variable is buffer local by checking out its documentation, using C-h v case-fold-search (or M-x describe-variable), which in this case reports (note 4th line):
case-fold-search is a variable defined in `buffer.c'.
Its value is t
Automatically becomes buffer-local when set in any fashion.
Documentation:
*Non-nil if searches and matches should ignore case.
You can customize this variable.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)