在组织模式下,如何使代码块默认折叠? [英] in org-mode, how to make code blocks folded by default?

查看:157
本文介绍了在组织模式下,如何使代码块默认折叠?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Emacs组织模式中,我如何指示组织模式默认使HTML代码块折叠?那么当我打开一个组织文件时,它们被折叠了?

解决方案

组织模式开箱即可提供此功能。您可以通过自定义变量 org-hide-block-startup 来全局设置。要将此设置为单个文件,请添加

 #+ STARTUP:hideblocks 
/ pre>

到标题。以下是手册的相关部分。


In Emacs org-mode, how would I instruct org-mode to make HTML code blocks folded by default? So that when I open an org file they are folded?

解决方案

org-mode provides this feature out of the box. You can set it globally by customizing the variable org-hide-block-startup. To set this for a single file, add

#+STARTUP: hideblocks

To the header. Here's the relevant section of the manual

这篇关于在组织模式下,如何使代码块默认折叠?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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