* [patch] Add a complex org-contacts template to the file header
@ 2013-06-02 23:37 Feng Shu
2013-06-03 22:37 ` Daimrod
0 siblings, 1 reply; 3+ messages in thread
From: Feng Shu @ 2013-06-02 23:37 UTC (permalink / raw)
To: orgmode
[-- Attachment #1: 0001-Add-a-complex-org-contacts-template-to-the-file-head.patch --]
[-- Type: text/x-diff, Size: 1557 bytes --]
From ed34362a763447eba684eb46032a3273ce7338ac Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
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 个文件被修改,插入 17 行(+),删除 1 行(-)
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 @@
;; This file contains the code for managing your contacts into Org-mode.
-;; To enter new contacts, you can use `org-capture' and a template just like
+;; To enter new contacts, you can use `org-capture' and a mini template just like
;; this:
;; ("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:
+;; :NICKNAME:
+;; :IGNORE:
+;; :ICON:
+;; :NOTE:
+;; :ADDRESS:
+;; :BIRTHDAY:
+;; :END:")))
+;;
;;; Code:
(eval-when-compile
--
1.7.10.4
[-- Attachment #2: Type: text/plain, Size: 5 bytes --]
--
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH] Add a complex org-contacts template to the file header
@ 2013-06-03 0:04 Feng Shu
0 siblings, 0 replies; 3+ messages in thread
From: Feng Shu @ 2013-06-03 0:04 UTC (permalink / raw)
To: orgmode
[-- Attachment #1: 0001-Add-a-complex-org-contacts-template-to-the-file-head.patch --]
[-- Type: text/x-diff, Size: 1557 bytes --]
From ed34362a763447eba684eb46032a3273ce7338ac Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@gmail.com>
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 个文件被修改,插入 17 行(+),删除 1 行(-)
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 @@
;; This file contains the code for managing your contacts into Org-mode.
-;; To enter new contacts, you can use `org-capture' and a template just like
+;; To enter new contacts, you can use `org-capture' and a mini template just like
;; this:
;; ("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:
+;; :NICKNAME:
+;; :IGNORE:
+;; :ICON:
+;; :NOTE:
+;; :ADDRESS:
+;; :BIRTHDAY:
+;; :END:")))
+;;
;;; Code:
(eval-when-compile
--
1.7.10.4
[-- Attachment #2: Type: text/plain, Size: 6 bytes --]
--
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [patch] Add a complex org-contacts template to the file header
2013-06-02 23:37 [patch] Add a complex org-contacts template to the file header Feng Shu
@ 2013-06-03 22:37 ` Daimrod
0 siblings, 0 replies; 3+ messages in thread
From: Daimrod @ 2013-06-03 22:37 UTC (permalink / raw)
To: Feng Shu; +Cc: orgmode
[-- Attachment #1: Type: text/plain, Size: 154 bytes --]
Feng Shu <tumashu@gmail.com> writes:
Thanks for the patch!
It's merged, I've taken the liberty to fix some typos.
Regards,
--
Daimrod/Greg
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 835 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-06-03 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-02 23:37 [patch] Add a complex org-contacts template to the file header Feng Shu
2013-06-03 22:37 ` Daimrod
-- strict thread matches above, loose matches on Subject: below --
2013-06-03 0:04 [PATCH] " Feng Shu
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).