emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug: File variable no longer on first line when running org-id-get-c


From: Ihor Radchenko
Subject: Re: Bug: File variable no longer on first line when running org-id-get-create [9.4.4 (release_9.4.4 @ /usr/share/emacs/27.2/lisp/org/)]
Date: Mon, 23 Aug 2021 10:28:17 +0800

Peter Prevos <peter@prevos.net> writes:

> -*- mode: org; ispell-local-dictionary: "nederlands" -*-
>
> It works great, except when I need to add an ID for use in 
> Org-Roam using the org-id-get-create function.

To make it work, convert the local-var line into proper comment. Just as
you would do in any other source code file:

# -*- mode: org; ispell-local-dictionary: "nederlands" -*-
:PROPERTIES:
:ID:       a60f6a47-9db9-49d6-ac00-307c7a84e43d
:END:

When you just have the line below, it is treated as ordinary paragraph
by Org, thus the property drawer is indeed inserted before:

:PROPERTIES:
:ID:       a60f6a47-9db9-49d6-ac00-307c7a84e43d
:END:
-*- mode: org; ispell-local-dictionary: "nederlands" -*-

Best,
Ihor



reply via email to

[Prev in Thread] Current Thread [Next in Thread]