From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: Re: [org-contacts] How to show avatar image on org headings? Date: Thu, 10 May 2018 09:20:47 +0800 Message-ID: <878t8s487k.fsf@gmail.com> References: <87fu342pj7.fsf@gmail.com> Reply-To: numbchild@gmail.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57419) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGaGP-0005FT-2V for emacs-orgmode@gnu.org; Wed, 09 May 2018 21:20:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fGaGL-0001Jn-U8 for emacs-orgmode@gnu.org; Wed, 09 May 2018 21:20:57 -0400 Received: from [183.249.134.109] (port=13672 helo=dark.localdomain) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fGaGL-0001I9-E4 for emacs-orgmode@gnu.org; Wed, 09 May 2018 21:20:53 -0400 In-reply-to: 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" To: John Kitchin Cc: org-mode Thanks, Kitchin! I tried code in Emacs minimal config. But the image is not shown. I tried to toggle Edebug on function `org-contacts-icon-property-image-overlay`. But it is not triggered. Don't understand why. Because `(font-lock-add-keywords ..)` not correct? I tried to change `nil` into `'org-mode`. But still does not work. Possible reasons: - In your code, seems don't need KEYWORDS for`font-lock-add-keywords`. - font-lock can't enabled on org-property because it is already font-locked? (don't know this neither) I'm considering might can change a thinking direction (This is an optional solution). Because Org-mode support inline image display for file link: ,---- | [[file:image.png]] `---- So I tried to use this in Org property like this: ,---- | * Name | :PROPERTY: | :ICON: [[file:image.png]] | :END: `---- But Org inline image can't display on property value. (Because inline image require a single line, invalid in org property value position?) WDYT? -- [ stardiviner ] don't need to convince with trends. Blog: https://stardiviner.github.io/ IRC(freenode): stardiviner GPG: F09F650D7D674819892591401B5DF1C95AE89AC3