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 08:04:04 +0800 Message-ID: <8761xw83gr.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]:53025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjIsd-0008GK-BU for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 20:44:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjIsc-0003bG-87 for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 20:44:11 -0400 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]:42408) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjIsc-0003b8-28 for emacs-orgmode@gnu.org; Sun, 02 Jun 2013 20:44:10 -0400 Received: by mail-pb0-f44.google.com with SMTP id wz12so4903156pbc.3 for ; Sun, 02 Jun 2013 17:44:08 -0700 (PDT) Received: from tumashu ([110.97.80.232]) by mx.google.com with ESMTPSA id xd2sm16574840pac.15.2013.06.02.17.44.05 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 02 Jun 2013 17:44:07 -0700 (PDT) Received: from feng by tumashu with local (Exim 4.80) (envelope-from ) id 1UjIFo-0002Fe-OZ for emacs-orgmode@gnu.org; Mon, 03 Jun 2013 08:04:04 +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 -- --=-=-=--