Re: [O] [org-contacts] How to show avatar image on org headings?

2018-05-09 Thread stardiviner
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

Re: [O] [org-contacts] How to show avatar image on org headings?

2018-05-09 Thread John Kitchin
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)

Re: [O] [org-contacts] How to show avatar image on org headings?

2018-05-09 Thread stardiviner
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:.*\\."

Re: [O] [org-contacts] How to show avatar image on org headings?

2018-05-07 Thread John Kitchin
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

[O] [org-contacts] How to show avatar image on org headings?

2018-05-06 Thread stardiviner
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