autofrettage writes:

> I recently read about the #+STARTUP parameter "hideblocks", but it
> doesn't seem to have any effect in my set-up. All the blocks kept
> laughing straight in my face. :-(
>
> Any ideas about what could have gone wrong?

Are you leaving org-startup-folded at showeverything (the default as of
9.4)?  That will prevent org-startup-folded and "#+startup: hideblocks"
from having an effect:

  (defun org-set-startup-visibility ()
    ...
    (unless (eq org-startup-folded 'showeverything)
      (when org-hide-block-startup (org-hide-block-all))
      ...)

For example, try this:

--8<---------------cut here---------------start------------->8---
#+startup: nofold
#+startup: hideblocks

#+begin_src emacs-lisp
(message "ok")
#+end_src
--8<---------------cut here---------------end--------------->8---

Reply via email to