Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

in org-mode, how to make code blocks folded by default?

Tags:

emacs

org-mode

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?

like image 434
incandescentman Avatar asked Feb 04 '14 00:02

incandescentman


1 Answers

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

like image 109
Tyler Avatar answered Oct 30 '22 16:10

Tyler