diff options
author | Titus von der Malsburg <malsburg@posteo.de> | 2020-11-16 11:05:15 +0100 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2020-11-16 23:31:06 -0500 |
commit | 8bade78ce627cc2eb2f81f2c83083ed2d59090d4 (patch) | |
tree | 641449126d1d3313744b75cb2657b0059d840ffc | |
parent | b04667a370852bb8b42998b53c02e07af3817ae0 (diff) | |
download | org-mode-8bade78ce627cc2eb2f81f2c83083ed2d59090d4.tar.gz |
lisp/org.el: Allow hiding #+SUBTITLE: keyword via `org-hidden-keywords'
* lisp/org.el: Allow users to include 'subtitle in
`org-hidden-keywords' to hide #+SUBTITLE: keyword.
This way #+SUBTITLE is treated like similar keywords for title, date,
e-mail, and author.
-rw-r--r-- | etc/ORG-NEWS | 6 | ||||
-rw-r--r-- | lisp/org.el | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index 66347fe..889eb4a 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -12,6 +12,12 @@ Please send Org bug reports to mailto:emacs-orgmode@gnu.org. * Version 9.5 (not yet released) ** New options and settings +*** Option ~org-hidden-keywords~ now also applies to #+SUBTITLE: + +The option ~org-hidden-keywords~ previously applied +to #+TITLE:, #+AUTHOR:, #+DATE:, and #+EMAIL:. Now it can also be +used to hide the #+SUBTITLE: keyword. + *** New formatting directive ~%L~ for org-capture The new ~%L~ formatting directive contains the bare link target, and diff --git a/lisp/org.el b/lisp/org.el index 73b2707..2b50f94 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -3569,10 +3569,11 @@ lines to the buffer: For example, a value \\='(title) for this list makes the document's title appear in the buffer without the initial \"#+TITLE:\" part." :group 'org-appearance - :version "24.1" + :package-version '(Org . "9.5") :type '(set (const :tag "#+AUTHOR" author) (const :tag "#+DATE" date) (const :tag "#+EMAIL" email) + (const :tag "#+SUBTITLE" subtitle) (const :tag "#+TITLE" title))) (defcustom org-custom-properties nil |