From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Rose Subject: org-id-get-create maybe... Date: Wed, 05 Aug 2009 01:06:43 +0200 Message-ID: <87my6f5gcc.fsf@kassiopeya.MSHEIMNETZ> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MYT1a-0001HC-DK for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 19:02:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MYT1W-0001Dk-UG for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 19:02:30 -0400 Received: from [199.232.76.173] (port=44079 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MYT1W-0001Dh-SC for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 19:02:26 -0400 Received: from mail.gmx.net ([213.165.64.20]:40007) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MYT1W-0001yj-3e for emacs-orgmode@gnu.org; Tue, 04 Aug 2009 19:02:26 -0400 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode mailing list 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? Sebastian