如何在 XEmacs 中折叠 LaTeX 文件?

发布于 2024-07-14 09:41:06 字数 32 浏览 5 评论 0原文

我希望在我的 AquaEmacs 中自动折叠评论。

I would like to have automatic folds for comments in my AquaEmacs.

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

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

发布评论

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

评论(2

终遇你 2024-07-21 09:41:06

看看 hs-minor-mode。 但它不是自动的。 对于更自动的方法,我想您可以通过以下方式自定义 hideshow 模式:

  1. 通过 hs-hide-comments-when-hiding-all 隐藏注释
  2. 分配一个不向 hs 隐藏任何内容的函数-hide-all-non-comment-function 然后
  3. 使用 hs-hide-all 隐藏所有评论。

没试过。 只是一个想法。

还可以查看 emacswiki 上的隐藏显示模式页面

have a look at hs-minor-mode. it's not automatic though. for a more automatic approach, i guess you could customize the hideshow mode the following way:

  1. hide comments via hs-hide-comments-when-hiding-all
  2. assign a function which hides nothing to hs-hide-all-non-comment-function and then
  3. use hs-hide-all to hide all comments.

have not tried it. just an idea.

check out the hideshow mode page at emacswiki as well.

舂唻埖巳落 2024-07-21 09:41:06

你不能有像 Vim 中那样的折叠。
我无法将折叠折叠到特定的行。

不过,有一个插件 Auctex 可以为您提供 Emacs-folds。
它们不像 Vim 中那样灵活。

如果您找到更好的解决方案,请告诉我。

You cannot have similar folds as in Vim.
I could not put folds to specific lines.

However, there is an addon Auctex which gives you Emacs-folds.
They are not as flexible as in Vim.

Please, inform me if you have found a better solution.

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