|
@@ -939,6 +939,7 @@ the following lines anywhere in the buffer:
|
|
|
#+STARTUP: fold (or `overview', this is equivalent)
|
|
|
#+STARTUP: nofold (or `showall', this is equivalent)
|
|
|
#+STARTUP: content
|
|
|
+ #+STARTUP: show<n>levels (<n> = 2..5)
|
|
|
#+STARTUP: showeverything
|
|
|
|
|
|
Set `org-agenda-inhibit-startup' to a non-nil value if you want
|
|
@@ -949,6 +950,10 @@ time."
|
|
|
:type '(choice
|
|
|
(const :tag "nofold: show all" nil)
|
|
|
(const :tag "fold: overview" t)
|
|
|
+ (const :tag "fold: show two levels" show2levels)
|
|
|
+ (const :tag "fold: show three levels" show3levels)
|
|
|
+ (const :tag "fold: show four levels" show4evels)
|
|
|
+ (const :tag "fold: show five levels" show5levels)
|
|
|
(const :tag "content: all headlines" content)
|
|
|
(const :tag "show everything, even drawers" showeverything)))
|
|
|
|
|
@@ -4121,6 +4126,10 @@ After a match, the following groups carry important information:
|
|
|
("overview" org-startup-folded t)
|
|
|
("nofold" org-startup-folded nil)
|
|
|
("showall" org-startup-folded nil)
|
|
|
+ ("show2levels" org-startup-folded show2levels)
|
|
|
+ ("show3levels" org-startup-folded show3levels)
|
|
|
+ ("show4levels" org-startup-folded show4levels)
|
|
|
+ ("show5levels" org-startup-folded show5levels)
|
|
|
("showeverything" org-startup-folded showeverything)
|
|
|
("content" org-startup-folded content)
|
|
|
("indent" org-startup-indented t)
|
|
@@ -6553,6 +6562,14 @@ With a numeric prefix, show all headlines up to that level."
|
|
|
(org-overview))
|
|
|
((eq org-startup-folded 'content)
|
|
|
(org-content))
|
|
|
+ ((eq org-startup-folded 'show2levels)
|
|
|
+ (org-content 2))
|
|
|
+ ((eq org-startup-folded 'show3levels)
|
|
|
+ (org-content 3))
|
|
|
+ ((eq org-startup-folded 'show4levels)
|
|
|
+ (org-content 4))
|
|
|
+ ((eq org-startup-folded 'show5levels)
|
|
|
+ (org-content 5))
|
|
|
((or (eq org-startup-folded 'showeverything)
|
|
|
(eq org-startup-folded nil))
|
|
|
(org-show-all)))
|