Jelajahi Sumber

`org-startup-folded' defaults to `showeverything'

* lisp/org.el (org-startup-folded): New default value.

See <http://lists.gnu.org/r/emacs-orgmode/2020-04/msg00452.html>.
Nicolas Goaziou 5 tahun lalu
induk
melakukan
88f5ed91c5
2 mengubah file dengan 4 tambahan dan 1 penghapusan
  1. 2 0
      etc/ORG-NEWS
  2. 2 1
      lisp/org.el

+ 2 - 0
etc/ORG-NEWS

@@ -91,6 +91,8 @@ These options now defaults to =t=:
 You may want to read the docstrings of these options to understand the
 You may want to read the docstrings of these options to understand the
 consequences of this change.
 consequences of this change.
 
 
+Also, ~org-startup-folded~ now defaults to ~showeverything~.
+
 ** New features
 ** New features
 
 
 *** Looping agenda commands over headlines
 *** Looping agenda commands over headlines

+ 2 - 1
lisp/org.el

@@ -928,7 +928,7 @@ equivalent option for agenda views."
   :group 'org-todo
   :group 'org-todo
   :group 'org-archive)
   :group 'org-archive)
 
 
-(defcustom org-startup-folded t
+(defcustom org-startup-folded 'showeverything
   "Non-nil means entering Org mode will switch to OVERVIEW.
   "Non-nil means entering Org mode will switch to OVERVIEW.
 
 
 This can also be configured on a per-file basis by adding one of
 This can also be configured on a per-file basis by adding one of
@@ -943,6 +943,7 @@ Set `org-agenda-inhibit-startup' to a non-nil value if you want
 to ignore this option when Org opens agenda files for the first
 to ignore this option when Org opens agenda files for the first
 time."
 time."
   :group 'org-startup
   :group 'org-startup
+  :package-version '(Org . "9.4")
   :type '(choice
   :type '(choice
 	  (const :tag "nofold: show all" nil)
 	  (const :tag "nofold: show all" nil)
 	  (const :tag "fold: overview" t)
 	  (const :tag "fold: overview" t)