[[https://melpa.org/#/org-auto-expand][file:https://melpa.org/packages/org-auto-expand-badge.svg]] [[https://stable.melpa.org/#/org-auto-expand][file:https://stable.melpa.org/packages/org-auto-expand-badge.svg]]
This package automatically expands certain headings in an Org file depending on properties set, making it easy to always get the same initial view when finding a file.
** MELPA
If you installed from [[https://melpa.org/#/org-auto-expand][MELPA]], you're already done!
** Quelpa
Installing with [[https://framagit.org/steckerhalter/quelpa][Quelpa]] is easy:
(use-package org-auto-expand :quelpa (org-auto-expand :fetcher github :repo "alphapapa/org-auto-expand"))
** Manual
Put =org-auto-expand.el= in your ~load-path~, and put this in your init file:
(require 'org-auto-expand)
** Auto-expansion Settings
Auto-expansion settings may be set in two ways: with Org properties on headings, and with the file- or dir-local variable ~org-auto-expand-nodes~.
*** Properties
Set the =auto-expand= property on a node to a list of one or more of these values:
For example, in this Org file:
,* Daily tasks :PROPERTIES: :auto-expand: body 1 :END:
Things to do every day.
, Check email , Walk dog
,* Weekly tasks
Things to do every week.
, Check tire pressure , Attempt to walk cat
After running ~org-auto-expand~, you would see:
,* Daily tasks :PROPERTIES:...
Things to do every day.
, Check email , Walk dog
,* Weekly tasks...
*** Variable =org-auto-expand-nodes=
The variable =org-auto-expand-nodes= may be set as file-local or dir-local (e.g. using command ~add-file-local-variable~). It should be an alist, the key of which should be an Org outline path (a list of heading strings corresponding to a node's hierarchy), and the value of which should be one of the values accepted by the =auto-expand= property. The corresponding example, which also calls ~org-auto-expand~ automatically:
** 0.2-pre
Org version 9.6 or later is now required.
Fixes
** 0.1
Initial release.
Bug reports, feature requests, suggestions — /oh my/!
GPLv3