emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Emacs-orgmode mailing list <emacs-orgmode@gnu.org>
Subject: Re: org-id-get-create maybe...
Date: Wed, 5 Aug 2009 01:49:06 +0200	[thread overview]
Message-ID: <F7920043-1F86-4AFB-99EC-6E3D886A36CB@gmail.com> (raw)
In-Reply-To: <87my6f5gcc.fsf@kassiopeya.MSHEIMNETZ>

On Aug 5, 2009, at 1:06 AM, Sebastian Rose wrote:

> In my org-setup, I want to have something like this:
>  (defun sr-org-id-insert-maybe ()
>    (if (y-or-n-p "Create a unique ID for this section?")
>       (org-id-get-create)))
>  (org-insert-heading-hook (quote (sr-org-id-insert-maybe)))
> But I don't want to enable it globally. Instead, I want to create IDs
> semi-automatic for special files (or projects) only.
> How would I do that?

Take a look at

file variables


and directory variables.


   And then make your hook dependent on the value of such a variable.

- Carsten

>   Sebastian
> _______________________________________________
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-08-04 23:49 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-04 23:06 org-id-get-create maybe Sebastian Rose
2009-08-04 23:49 ` Carsten Dominik [this message]
2009-08-05 11:33   ` Sebastian Rose

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:

  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=F7920043-1F86-4AFB-99EC-6E3D886A36CB@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=sebastian_rose@gmx.de \


* 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


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).