all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Properties drawer at buffer/file level
@ 2024-07-29 16:02 Sébastien Gendre
  2024-07-29 17:03 ` Martin Edström
  2024-07-29 17:09 ` Martin Edström
  0 siblings, 2 replies; 6+ messages in thread
From: Sébastien Gendre @ 2024-07-29 16:02 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-31 12:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-29 16:02 Properties drawer at buffer/file level Sébastien Gendre
2024-07-29 17:03 ` 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

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.