emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Sébastien Gendre" <seb@k-7.ch>
To: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Properties drawer at buffer/file level
Date: Mon, 29 Jul 2024 18:02:35 +0200	[thread overview]
Message-ID: <87msm0xk2s.fsf@k-7.ch> (raw)

[-- Attachment #1: Type: text/plain, Size: 1296 bytes --]

Hello,


If I set a property with `(org-set-property)' when the point is at the
top of a buffer, before any heading, I got a property drawer inserted at
in the first line of the buffer.

But if I already have buffer settings, like "#+TITLE:", the property
drawer is put before these settings.

Is it possible to tell Org-mode to put the buffer properties drawer after
the buffer settings ?


More context:

I try to use Org-roam to take notes about books I read. With this, I got
1 file per book, with the title of the book set as buffer setting
"#+TITLE:".

But when I add other information (like author, editor, etc)
into a property drawer of my note, these additional info are inserted
before the title.

On a new note, I got this:

     :PROPERTIES:
     :ID:       A-unique-ID
     :Author:   Author Name
     :Editor:   Editor Name
     :END:
     #+Title: Book title


Instead of this:

     #+Title: Book title
     :PROPERTIES:
     :ID:       A-unique-ID
     :Author:   Author Name
     :Editor:   Editor Name
     :END:

Which is visually very different from what I got when the property
drawer is set for a heading. And the actual result feel less intuitive
than what I got with heading.


Best regards

-------
Gendre Sébastien

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

             reply	other threads:[~2024-07-29 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-29 16:02 Sébastien Gendre [this message]
2024-07-29 17:03 ` Properties drawer at buffer/file level Martin Edström
2024-07-29 17:15   ` Sébastien Gendre
2024-07-29 17:57     ` Martin Edström
2024-07-29 18:41       ` Sébastien Gendre
2024-07-29 17:09 ` Martin Edström

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87msm0xk2s.fsf@k-7.ch \
    --to=seb@k-7.ch \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).