From mboxrd@z Thu Jan 1 00:00:00 1970 From: Feng Shu Subject: [patch] Add a complex org-contacts template to the file header Date: Mon, 03 Jun 2013 07:37:31 +0800 Message-ID: <87a9n884p0.fsf@news.tumashu-localhost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57496) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjMdP-0000P9-4i for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 00:45:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjMd9-0000ZE-0G for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 00:44:43 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:62520) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjMd8-0000Yq-M2 for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 00:44:26 -0400 Received: by mail-pd0-f176.google.com with SMTP id r11so5055448pdi.35 for ; Sun, 02 Jun 2013 21:44:25 -0700 (PDT) Received: from news.tumashu-localhost.org ([110.97.81.95]) by mx.google.com with ESMTPSA id i16sm12433735pag.18.2013.06.02.21.44.22 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 21:44:24 -0700 (PDT) Received: from feng by news.tumashu-localhost.org with local (Exim 4.80) (envelope-from ) id 1UjHq7-0002Au-6Y for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 07:37:31 +0800 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: orgmode --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: inline; filename=0001-Add-a-complex-org-contacts-template-to-the-file-head.patch Content-Transfer-Encoding: quoted-printable >From ed34362a763447eba684eb46032a3273ce7338ac Mon Sep 17 00:00:00 2001 From: Feng Shu Date: Mon, 3 Jun 2013 07:35:09 +0800 Subject: [PATCH] Add a complex org-contacts template to the file header contrib/lisp/org-contacts.el: Add a complex org-contacts template. Add a complex org-contacts template to the file header, which can help user know all the org-contacts properties quickly. --- contrib/lisp/org-contacts.el | 18 +++++++++++++++++- 1 =E4=B8=AA=E6=96=87=E4=BB=B6=E8=A2=AB=E4=BF=AE=E6=94=B9=EF=BC=8C=E6=8F=92= =E5=85=A5 17 =E8=A1=8C(+)=EF=BC=8C=E5=88=A0=E9=99=A4 1 =E8=A1=8C(-) diff --git a/contrib/lisp/org-contacts.el b/contrib/lisp/org-contacts.el index ffd17a1..ee2e657 100644 --- a/contrib/lisp/org-contacts.el +++ b/contrib/lisp/org-contacts.el @@ -25,7 +25,7 @@ =20 ;; This file contains the code for managing your contacts into Org-mode. =20 -;; To enter new contacts, you can use `org-capture' and a template just li= ke +;; To enter new contacts, you can use `org-capture' and a mini template ju= st like ;; this: =20 ;; ("c" "Contacts" entry (file "~/Org/contacts.org") @@ -34,6 +34,22 @@ ;; :EMAIL: %(org-contacts-template-email) ;; :END:"))) ;; +;; You can also use a complex templete, for example: +;; +;; ("c" "Contacts" entry (file "~/Org/contacts.org") +;; "* %(org-contacts-template-name) +;; :PROPERTIES: +;; :EMAIL: %(org-contacts-template-email) +;; :PHONE: +;; :ALIAS:=20 +;; :NICKNAME: +;; :IGNORE: +;; :ICON: +;; :NOTE: +;; :ADDRESS: +;; :BIRTHDAY: +;; :END:"))) +;; ;;; Code: =20 (eval-when-compile --=20 1.7.10.4 --=-=-= Content-Type: text/plain -- --=-=-=--