我们可以将 Emacs 缓冲区设为静态/固定吗?
我使用 Org 文件来跟踪我的活动,因为我经常忘记我真正想要做什么:)
现在,我想保留一个只有 5 行高的顶部缓冲区窗口,并显示缩小的窗口该组织文件中的待办事项。所有其他窗口/缓冲区活动都不会触及该静态/固定缓冲区。
有没有办法达到这个结果???
谢谢!
编辑:我们可以使某个缓冲区具有不同的背景颜色吗?我认为不是,因为我们所拥有的只是设置背景颜色......我希望我错了......
I use an Org file to keep track of my activities, because it's often that I am loosing track of what actually I am aiming to do :)
Now, I would like to reserved a top buffer window with only 5 lines tall and show the narrowed todo from that org file. All other window/buffer activites will not touch that static/pinned buffer.
Is there a way to achieve that result???
Thanks!
EDITED : Can we make that certain buffer to have different background Color? I pressume it's not, because all we have is set-background-color... I hope I am wrong..
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
也许设置变量
special-display-buffer-names
将为您指明正确的方向。测试肯定会在一个很小且非常非常绿色的框架中出现一个名为“魔术缓冲区”的缓冲区。 (对于实际使用,当然一定要通过自定义机制。)
ETA:然后,还有 这个问题可能适用于这里。
Maybe setting the variable
special-display-buffer-names
will set you in the right direction.to test certainly made a buffer called "magic buffer" turn up in a small and very very green frame. (For real-life use, of course do go through the customize mechanism by all means.)
ETA: And then, there's also this question which might apply here.
如果您签入 Org TODO 项,该任务将显示在当前缓冲区的模型行中;您可能还会发现这有助于提醒您正在做什么。
If you clock in to the Org TODO item, that task will be displayed in the modeline of the current buffer; you might also find that helpful as a reminder of what you're working on.
问题的原始部分是重复的。请参阅我该如何使这个 Emacs 框架保持其缓冲区并且不调整大小? (这比之前的 将 Emacs 缓冲区固定到窗口(对于 cscope)),以及
set-window-dedicated-p
函数。The original part of the question is a duplicate. See How do I make this Emacs frame keep its buffer and not get resized? (which is slightly enhanced over the earlier Pin Emacs buffers to windows (for cscope)), and the
set-window-dedicated-p
function.您可以使用 org-todo-list 来显示 TODO 项目,而 org-agenda 将向您显示有用的选择,例如“M”,它可以按关键字过滤您的 TODO 项目。
YOu can use org-todo-list to show TODO items and org-agenda will show you useful choices such as "M" that filters your TODO items by keyword.
我为同样的问题苦苦挣扎了一段时间。我想出的最佳解决方案是为我的 Org 模式议程创建一个小型 Emacs 框架(大小:80x13),并将其放置在屏幕上始终可见的部分。 (使用“Cx 5 2”创建一个新框架。)
I struggled with the same problem for a while. The best solution I came up with was creating a small Emacs frame (size: 80x13) for my Org-mode agenda and placing it in an always-visible portion of my screen. (Use "C-x 5 2" to create a new frame.)