* DevonThink links in org mode?
@ 2012-07-16 11:51 Alan Schmitt
2012-07-16 12:26 ` Bastien
0 siblings, 1 reply; 7+ messages in thread
From: Alan Schmitt @ 2012-07-16 11:51 UTC (permalink / raw)
To: emacs-orgmode Mode
Hello,
I discovered that "message:" links work great in org-mode (it opens the message in Mail.app). However, if I click on a link from DevonThink (which looks like this: x-devonthink-item://700A651C-E395-462C-873A-13FC92035FBD), I get a dialog which says "no match, create this as a new heading?".
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.)
Thanks a lot,
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 11:51 DevonThink links in org mode? Alan Schmitt
@ 2012-07-16 12:26 ` Bastien
2012-07-16 12:48 ` Alan Schmitt
0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2012-07-16 12:26 UTC (permalink / raw)
To: Alan Schmitt; +Cc: emacs-orgmode Mode
Hi Alan,
Alan Schmitt <alan.schmitt@polytechnique.org> 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
HTH,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 12:26 ` Bastien
@ 2012-07-16 12:48 ` Alan Schmitt
2012-07-16 14:47 ` Bastien
2012-07-16 18:22 ` John Wiegley
0 siblings, 2 replies; 7+ messages in thread
From: Alan Schmitt @ 2012-07-16 12:48 UTC (permalink / raw)
To: Bastien; +Cc: emacs-orgmode Mode
On 16 juil. 2012, at 14:26, Bastien wrote:
> Hi Alan,
>
> Alan Schmitt <alan.schmitt@polytechnique.org> 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 12:48 ` Alan Schmitt
@ 2012-07-16 14:47 ` Bastien
2012-07-16 18:22 ` John Wiegley
1 sibling, 0 replies; 7+ messages in thread
From: Bastien @ 2012-07-16 14:47 UTC (permalink / raw)
To: Alan Schmitt; +Cc: emacs-orgmode Mode
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> Thanks a lot, that was most helpful. Here is what I ended up with, if
> it may help other people:
Thanks!
I added it to Worg:
http://orgmode.org/worg/org-hacks.html#sec-3-15
Best,
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 12:48 ` Alan Schmitt
2012-07-16 14:47 ` Bastien
@ 2012-07-16 18:22 ` John Wiegley
2012-07-16 20:15 ` Bastien
2012-07-18 7:11 ` Alan Schmitt
1 sibling, 2 replies; 7+ messages in thread
From: John Wiegley @ 2012-07-16 18:22 UTC (permalink / raw)
To: emacs-orgmode
>>>>> Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> 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)))
I created org-devonthink.el a long time ago:
https://github.com/jwiegley/dot-emacs/blob/master/lisp/org-devonthink.el
John
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 18:22 ` John Wiegley
@ 2012-07-16 20:15 ` Bastien
2012-07-18 7:11 ` Alan Schmitt
1 sibling, 0 replies; 7+ messages in thread
From: Bastien @ 2012-07-16 20:15 UTC (permalink / raw)
To: emacs-orgmode
"John Wiegley" <johnw@newartisans.com> writes:
> I created org-devonthink.el a long time ago:
>
> https://github.com/jwiegley/dot-emacs/blob/master/lisp/org-devonthink.el
I added this to the section in worg/org-hacks.org, thanks!
--
Bastien
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: DevonThink links in org mode?
2012-07-16 18:22 ` John Wiegley
2012-07-16 20:15 ` Bastien
@ 2012-07-18 7:11 ` Alan Schmitt
1 sibling, 0 replies; 7+ messages in thread
From: Alan Schmitt @ 2012-07-18 7:11 UTC (permalink / raw)
To: John Wiegley; +Cc: emacs-orgmode
On 16 juil. 2012, at 20:22, John Wiegley wrote:
> I created org-devonthink.el a long time ago:
>
> https://github.com/jwiegley/dot-emacs/blob/master/lisp/org-devonthink.el
Really nice, thanks a lot!
Alan
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2012-07-18 7:11 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-16 11:51 DevonThink links in org mode? Alan Schmitt
2012-07-16 12:26 ` Bastien
2012-07-16 12:48 ` Alan Schmitt
2012-07-16 14:47 ` Bastien
2012-07-16 18:22 ` John Wiegley
2012-07-16 20:15 ` Bastien
2012-07-18 7:11 ` Alan Schmitt
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).