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-m
there are a couple of typos in your code, and the regexp doesn't seem to
match the property you want for some reason.
This seems to do what you want.
#+begin_src emacs-lisp
(defun org-contacts-icon-property-image-overlay (&optional limit)
(when (re-search-forward org-heading-regexp limit t)
Hi, Kitchin, thanks for your sharing. Following your code example, I did
small modification to use on my case.
Here is my code:
#+begin_src emacs-lisp
(defvar image-overlay-re (concat
":ICON:"
"\\(?3:'\\|\"\\)\\(?1:.*\\."
you might find this
http://kitchingroup.cheme.cmu.edu/blog/2016/03/21/Displaying-image-overlays-on-image-filenames-in-Emacs/
potentially useful for what you want.
stardiviner writes:
> I want to show org-contacts avatar image on org-headings.
> Use overlay, or there is other better methods?
>
> A
I want to show org-contacts avatar image on org-headings.
Use overlay, or there is other better methods?
A sample org-contacts snippet looks like this:
* [] John KK
:PROPERTIES:
:AVATAR: john kk.jpg []
:END:
I want to display the image at [] on heading, or replace "john kk.jpg"
with [] image.
B