branch: scratch/org-contacts-rebased
commit 5ee8caa67a5863ac02f2b84bb1506b22a9de8ceb
Author: Feng Shu <tuma...@gmail.com>
Commit: Bastien Guerry <b...@altern.org>

    org-contacts.el, add name alias property.
    
    * contrib/lisp/org-contacts.el (org-contacts-alias-property): add new
      varible
      (org-contacts-matcher): add org-contacts-alias-property to this list
    
    Name alias is a very useful feature, especially for CJK users.
---
 org-contacts.el | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/org-contacts.el b/org-contacts.el
index 65eeea8..a3c4aed 100644
--- a/org-contacts.el
+++ b/org-contacts.el
@@ -81,6 +81,12 @@ When set to nil, all your Org files will be used."
   :type 'string
   :group 'org-contacts)
 
+(defcustom org-contacts-alias-property "ALIAS"
+  "Name of the property for contact name alias."
+  :type 'string
+  :group 'org-contacts)
+
+
 (defcustom org-contacts-birthday-format "Birthday: %l (%Y)"
   "Format of the anniversary agenda entry.
 The following replacements are available:
@@ -129,6 +135,7 @@ The following replacements are available:
 
 (defcustom org-contacts-matcher
   (mapconcat 'identity (list org-contacts-email-property
+                            org-contacts-alias-property
                             org-contacts-tel-property
                             org-contacts-address-property
                             org-contacts-birthday-property)

Reply via email to