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

Carsten Dominik <carsten.dominik@gmail.com> writes:
> 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
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/File-Variables.html#File-Variables
>
> and directory variables.
>
> http://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html#Directory-Variables
>
>   And then make your hook dependent on the value of such a variable.


I knew there were a solution somewhere :)


Thanks a bunch!


  Sebastian

      reply	other threads:[~2009-08-05 11:29 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
2009-08-05 11:33   ` Sebastian Rose [this message]

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=877hxitrzs.fsf@kassiopeya.MSHEIMNETZ \
    --to=sebastian_rose@gmx.de \
    --cc=carsten.dominik@gmail.com \
    --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).