all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to insert a link in an Org buffer programmatically?
@ 2015-02-21 18:09 Marcin Borkowski
  2015-02-21 18:19 ` Kyle Meyer
  0 siblings, 1 reply; 2+ messages in thread
From: Marcin Borkowski @ 2015-02-21 18:09 UTC (permalink / raw)
  To: Org-Mode mailing list

Hello fellow Orgers,

I'd like to insert a link (say, at point), given its description and the
text of the link itself, from Elisp code.  Is there any function to do
this?  I mean, some escaping might be needed, right?

TIA,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University

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

* Re: How to insert a link in an Org buffer programmatically?
  2015-02-21 18:09 How to insert a link in an Org buffer programmatically? Marcin Borkowski
@ 2015-02-21 18:19 ` Kyle Meyer
  0 siblings, 0 replies; 2+ messages in thread
From: Kyle Meyer @ 2015-02-21 18:19 UTC (permalink / raw)
  To: Marcin Borkowski; +Cc: Org-Mode mailing list

Marcin Borkowski <mbork@wmi.amu.edu.pl> wrote:
> Hello fellow Orgers,
>
> I'd like to insert a link (say, at point), given its description and the
> text of the link itself, from Elisp code.  Is there any function to do
> this?  I mean, some escaping might be needed, right?

`(insert (org-make-link-string LINK DESCRIPTION))' should do what you
want.

-- 
Kyle

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

end of thread, other threads:[~2015-02-21 18:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 18:09 How to insert a link in an Org buffer programmatically? Marcin Borkowski
2015-02-21 18:19 ` Kyle Meyer

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.