开发者

show hidden files in speedbar

Is there a way to display what the docs call level 2 hidden files in the speedb开发者_如何学Pythonar? E.g. .emacs

Long Answer

It turns out that the unshown files are controlled by a regular expression

Which is usually "^\\(\\..*\\)\\'", which I think means everything that starts with a dot

Setting that regexp with:

(setq speedbar-directory-unshown-regexp "^$")

does the trick of showing everything.


While looking at this, I discovered that there is a bug in the default value of speedbar-directory-unshown-regexp causing the problem. It should be redefined like this:

(setq speedbar-directory-unshown-regexp "^\\(CVS\\|RCS\\|SCCS\\|\\.\\.*$\\)\\'")

or to whatever you think makes the most sense.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜