rougier / book-mode

A clean interface for org files (Emacs)
GNU General Public License v3.0
291 stars 7 forks source link

Make adjusting header more robust #2

Open ckeen opened 1 year ago

ckeen commented 1 year ago

This also unbreaks features like org-capture when there is no TITLE or AUTHOR set in the document.

rougier commented 1 year ago

I read the code but I'm not sure what you're doing exactly.

ckeen commented 1 year ago

The code tries to find #+TITLE: and #+AUTHOR: in the buffer, if there's at least a title set, it adjusts the header accordingly.

It will not do this if title is not set and it will set the author part to "" if it is missing.

rougier commented 1 year ago

I've modified your code since then to get extract title/author using org tools. Can you check?