emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* some org-contacts icons property value questions
@ 2015-10-17  8:15 stardiviner
  2015-11-09  4:54 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: stardiviner @ 2015-10-17  8:15 UTC (permalink / raw)
  To: Org-Mode

How to edit the org-contacts property ~:ICON~ value?

I tried use `filename.jpg` which file is in same directory with contacts file.
And what kind of image size should I use for icon?

Can I use a custom function to show this icon?
Can I show multiple icons for one contact?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: some org-contacts icons property value questions
  2015-10-17  8:15 some org-contacts icons property value questions stardiviner
@ 2015-11-09  4:54 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2015-11-09  4:54 UTC (permalink / raw)
  To: stardiviner; +Cc: Org-Mode

Hello,

I've never used icons with Org Contacts, but here are my guesses based
on glancing at the code.

stardiviner <numbchild@gmail.com> writes:

> How to edit the org-contacts property ~:ICON~ value?

You should be able to edit it like you would any other property (e.g.,
manually or with org-set-property).

> I tried use `filename.jpg` which file is in same directory with
> contacts file.

I think it should be a path to a file [1], like you're using.  In the
end, create-image is called with the file.  Can you give specific steps
to reproduce what's not working on your end?  IIUC, icons are only used
when the org-contacts command is called.

> And what kind of image size should I use for icon?

If gnus-rescale-image is available, it will be rescaled to
org-contacts-icon-size x org-contacts-icon-size.

> Can I use a custom function to show this icon?

Do you want to change the way it's inserted in the agenda buffer, or are
you trying to show it in some other context?  If it's the latter, you
could write a command to get the image like org-contacts-icon-as-string
does and then do what you want with it.

> Can I show multiple icons for one contact?

That doesn't seem to be supported.

[1] A gravatar can be used for the icon instead, but that's done based
    on the email property.

--
Kyle

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-11-09  4:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-17  8:15 some org-contacts icons property value questions stardiviner
2015-11-09  4:54 ` Kyle Meyer

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).