如何关闭大小写敏感性在Emacs 24外壳模式的文件名自动完成? [英] How to disable case-sensitivity for filename auto-completion in Emacs 24 shell-mode?

查看:268
本文介绍了如何关闭大小写敏感性在Emacs 24外壳模式的文件名自动完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在升级从Emacs的23至24的Emacs,文件名补突然变得情况下,敏感壳模。我已经定制的Emacs 23是区分在这种情况下不敏感,但我现在忘了确切的自定义设置。去在我的的.emacs 文件,我看到读取文件名,竣工忽略大小写设置为非空。然而,这似乎已经没有效果的Emacs 24的壳模

On upgrading from Emacs 23 to Emacs 24, filename completion suddenly became case sensitive in shell-mode. I had customized Emacs 23 to be case insensitive in this case but I forget the exact customizations now. Going over my .emacs file, I see that read-file-name-completion-ignore-case is set to non-nil. However, that seems to have no effect in Emacs 24's shell-mode.

推荐答案

所以,事实证明,<一个href=\"http://www.masteringemacs.org/articles/2012/01/16/pcomplete-context-sensitive-completion-emacs/\"相对=nofollow> 壳模在Emacs 24使用 pcomplete 默认。 pcomplete 总是为 ESHELL 但Emacs的24已经说得那么对于太。

So it turns out that shell-mode in Emacs 24 uses pcomplete by default. pcomplete was always the default for eshell but Emacs 24 has made it so for shell too.

pcomplete-忽略大小写控制在 pcomplete 区分大小写。我在Emacs 24中加入以下到我的的.emacs 文件回来的文件名自动完成不区分大小写的壳模

pcomplete-ignore-case controls case sensitivity for pcomplete. I got back case insensitivity for filename autocompletion in shell-mode in Emacs 24 by adding the following to my .emacs file.

(setq pcomplete-ignore-case t)

这篇关于如何关闭大小写敏感性在Emacs 24外壳模式的文件名自动完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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