简体   繁体   English

在emacs中打开最近的文件

[英]open recent files in emacs

I recently upgraded my emacs (version 24.3), but i lost a function that was very convenient, and could not figure out the solution easily by google, so i wish i can get help here (which is always the case when i have problems with computer) 我最近升级了我的emacs(版本24.3),但是我失去了一个非常方便的功能,并且无法通过google轻松地找到解决方案,所以我希望我可以在这里获得帮助(当我遇到问题时,通常会这样)电脑)

i remember my emacs can find recent file even the file is not in current editing folder. 我记得我的emacs可以找到最近的文件,即使该文件不在当前的编辑文件夹中。 eg, i am editing fileA in pathA, and i want to open a fileB that is in PathB/, i just press Cx Cf, type fileB, emacs automaticall find the fileB in PathB, and auto-complete the full path to fileB in the mini buffer. 例如,我正在编辑pathA中的fileA,并且我想打开PathB /中的fileB,我只需按Cx Cf,键入fileB,emacs autoall就会在PathB中找到该fileB,并自动完成文件中的fileB完整路径。迷你缓冲区。 Dont know what package enables such function but it was there before my upgrading. 不知道哪个软件包启用了此功能,但是在升级之前就已经存在。

thanks alot! 非常感谢!

this is the key to the issue: 这是问题的关键:

(setq ido-auto-merge-work-directories-length 0)

thanks to all anyway 还是谢谢大家

听起来您正在使用ido ,请尝试打开ido-use-virtual-buffers

(setq ido-use-virtual-buffers t)

The obvious answer is library recentf.el , which comes with Emacs. 显而易见的答案是Emacs附带的库recentf.el使用的库。 See, for example, command recentf-open-files . 参见,例如,命令recentf-open-files

But be aware that other, more general-purpose libraries can sometimes extend recentf.el features, making them more useful. 但是请注意,其他用途更广泛的库有时可以扩展recentf.el功能,从而使它们更有用。

  • One such is Icicles multi-command icicle-recent-file . Icicles多命令icicle-recent-file就是这样的一种。

  • Another is Icicles multi-command icicle-buffer ( Cx b by default), which can include recently visited files (with their paths) as candidates for buffer switching. 另一个是冰柱多命令icicle-bufferCx b默认情况下),其可包括最近访问过的文件(与他们的路径)作为用于缓冲器切换候选者。 Cx R during completion toggles whether such candidates are included. 完成期间的Cx R切换是否包含此类候选项。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM