emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] DevonThink links in org mode?


From: Alan Schmitt
Subject: Re: [O] DevonThink links in org mode?
Date: Mon, 16 Jul 2012 14:48:49 +0200

On 16 juil. 2012, at 14:26, Bastien wrote:

> Hi Alan,
> 
> Alan Schmitt <address@hidden> writes:
> 
>> Is there a way to tell org-mode to pass the resolution of this link to the
>> system? (For instance, if I do a "open
>> x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD" in a terminal
>> window, things work as expected.)
> 
> You want to check the "A.3 Adding hyperlink types" section of 
> the manual:
> 
>  http://orgmode.org/manual/Adding-hyperlink-types.html

Thanks a lot, that was most helpful. Here is what I ended up with, if it may 
help other people:

(org-add-link-type "x-devonthink-item" 'org-devonthink-open)

(defun org-devonthink-open (link)
        "Open the devonthink link."
                (start-process (concat "open " link) nil "open"
                                                                         
(concat "x-devonthink-item:" link)))

Alan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]