emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kyle Meyer <kyle@kyleam.com>
To: autofrettage <autofrettage@protonmail.ch>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: "#+STARTUP: hideblocks"  has no effect?
Date: Mon, 05 Apr 2021 23:07:41 -0400	[thread overview]
Message-ID: <87wntgaz5u.fsf@kyleam.com> (raw)
In-Reply-To: <ROHUeM54ZefdkWDdlKutztK14Bs29jY2OePKuMLq5xs8I4UFFQpL8Gsdo8ejciIStc24hcPWEElH1izFsDHx8LGThzBDcr0oVjdrDqb5KA0=@protonmail.ch>

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")
--8<---------------cut here---------------end--------------->8---

  reply	other threads:[~2021-04-06  3:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-01 13:10 "#+STARTUP: hideblocks" has no effect? autofrettage
2021-04-06  3:07 ` Kyle Meyer [this message]
2021-04-06 12:31   ` autofrettage
2021-04-07  0:12 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wntgaz5u.fsf@kyleam.com \
    --to=kyle@kyleam.com \
    --cc=autofrettage@protonmail.ch \
    --cc=emacs-orgmode@gnu.org \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).