在emacs组织模式下,只能加载前N行 [英] lazy loading of only the first N lines in emacs org-mode

查看:152
本文介绍了在emacs组织模式下,只能加载前N行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法告诉组织模式仅加载长文本文件的前N行?我想保持整个文件能够搜索,但是在我的文件的前N行显示组织模式,这是我编辑新内容的地方。

Is there a way to tell org-mode to load only the first N lines of a long text file? I would like to keep the whole file open to be able to search through it, but have org-mode display on the first N lines of my file, which is where I edit new content.

推荐答案

如果您在组织模式中具有结构化大纲,则可以使用#+ STARTUP 标记,或任何具有 VISIBILITY 属性的标题的可见性,请参阅可见性循环的详细信息。使用内置组织模式属性的好处是,您可以轻松地在完全符合要求的状态下打开文件。

If you have a structured outline in org-mode, you can set the global file visibility with the #+STARTUP markup, or the visibility of any heading with the VISIBILITY property, see Visibility Cycling for details. The benefit of using the built-in org-mode properties is that it's easy to have a file open up in exactly the state you want.

我有我的日志文件设置,以完成类似我认为您要使用这些组织模式属性的类似。 今天部分是打开的,所以我可以看到一切,但旧的档案被折叠。

I have my journal file set up to accomplish something similar what I think you're asking for using these org-mode properties. The "Today" section is opened so I can see everything, but older archives are collapsed.

这篇关于在emacs组织模式下,只能加载前N行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆