Emacs 的上下文

发布于 2024-10-03 08:59:22 字数 356 浏览 6 评论 0原文

我一直在使用 Emacs 的 Buffer Ring,我真的很喜欢拥有多个缓冲环的想法缓冲区。不过,我想更进一步。我进入一些人可能称之为“背景”的地方。我通常同时处理三个项目。通常,项目涉及不同的文件和不同的语言。有时,在我的框架中拥有 cedet 窗口和调试器窗口是很好的,但有时它们会妨碍。我希望每个项目都有一个上下文,以便我可以运行命令并通过缓冲区环随帧进行更改。我可能还有一些实际上与项目无关的杂项上下文,例如编辑 .emacs 以包含新的包和键绑定。

Emacs 是否有一个功能可以完成这些“上下文”?最好在会话之间保留上下文。

I've been playing with Buffer Ring for Emacs and I really like the idea of having several rings of buffers. However, I would like to go a bit further. I go into what some may call "contexts". I usually work on about three projects at once. Often the projects involve different files and different languages. Sometimes it's nice to have cedet windows in my frame along with a debugger window, sometimes they get in the way. I would like to have a context for each project so I can run a command and by buffer ring changes along with the frames. I may also have a few misc contexts that aren't actually tied to projects like editing .emacs to include new packages and key bindings.

Is there an Emacs feature that can do these "contexts"? It would be nice to have the contexts be preserved between sessions.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

格子衫的從容 2024-10-10 08:59:22

使用 Bookmark+ 您可以为当前“桌面”添加书签(缓冲区、窗口、寄存器的当前状态,搜索环等)。然后,稍后您可以跳转到书签以恢复保存的状态。

由于 desktop.el 不知道缓冲区环,因此您可能必须适当地自定义 desktop-globals-to-save

(我自己没有用过这个,但这听起来像是你想要的东西。)

With Bookmark+ you can bookmark the current "desktop" (the current state of buffers, windows, registers, search-ring, etc). Then at a later date you can jump to the bookmark to restore the saved state.

Since desktop.el doesn't know about the buffer ring, you'll probably have to customize desktop-globals-to-save appropriately.

(I've not used this myself, but it sounds like the kind of thing you're after.)

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文