0

I use drawers extensively. As a result, They tend to get long.I would like a mechanism to fold them like headlines. I found outline-show-all command which makes drawers visible. I would like a global, headline specific and headline recursive mechanisms for toggling the visibility of drawers.

  • I don't use a current version of org-mode, but back in the day (a few years ago), I wrote up an answer describing how to completely hide the :PROPERTIES: drawer including the aforementioned line. Towards the end of the answer, I wrote-up a snippet that modifies the behavior of cycling so as to add an additional level of toggling visibility/hiding. To do that, I modified org-cycle-internal-local with a few lies of code mentioned in the answer: stackoverflow.com/a/17492723/2112489 Perhaps something of that nature will still work, but I haven't tested it recently. – lawlist Dec 23 '19 at 1:55
0

For now I figured out that running org-mode on file automatically folds everything including drawers. Doesn't have the granularity that I am looking for but a great counter part for outline-show-all.

| improve this answer | |
  • See also org-hide-drawer-all. – jagrg Jun 10 at 21:55
  • @jagrg it doesn't seem to me that org-hid-drawer-all function exists. – Joann Morris Jun 11 at 14:28
  • You're right. Not in the version that ships with Emacs. Anyhow, it's in the master branch. – jagrg Jun 11 at 22:25
  • @jagrg I see. I will try it out. – Joann Morris Jun 12 at 7:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.