How to disable case-sensitivity for filename auto-completion in Emacs 24 shell-mode?

梦想的初衷 提交于 2019-12-07 16:02:09

问题


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.


回答1:


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-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)


来源:https://stackoverflow.com/questions/20055181/how-to-disable-case-sensitivity-for-filename-auto-completion-in-emacs-24-shell-m

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!