Re: [O] Handling custom link types for html export in v 9.0 - Replacement for deprecated `org-add-link-type`?

2017-04-19 Thread John Kitchin
No problem. I usually use lambda functions there, but if you use functions like you have the quoted form is right. Glad it was helpful! Milan Zimmermann writes: > Great, thanks very much John. > > As a minor note I had to make a slight change > > (org-link-set-parameters > "img" > :follow

Re: [O] Handling custom link types for html export in v 9.0 - Replacement for deprecated `org-add-link-type`?

2017-04-18 Thread Milan Zimmermann
Great, thanks very much John. As a minor note I had to make a slight change (org-link-set-parameters "img" :follow 'org-custom-link-img-follow ; my old code :export 'org-custom-link-img-export) ; my old code And then it works equivalent with the previous version in 8. Thanks Milan

Re: [O] Handling custom link types for html export in v 9.0 - Replacement for deprecated `org-add-link-type`?

2017-04-18 Thread John Kitchin
You can find a many examples of the new link syntax here: http://kitchingroup.cheme.cmu.edu/blog/2016/11/04/New-link-features-in-org-9/ You will probably be able to reuse much of your old code and this: (org-link-set-parameters "img" :follow (your-old-follow-code) :export

[O] Handling custom link types for html export in v 9.0 - Replacement for deprecated `org-add-link-type`?

2017-04-17 Thread Milan Zimmermann
Hi: I have a question about how to define custom link type, which before 9.0 used the (9.0) deprecated `org-add-link-type`. 1. Let me first provide the context: There is often a need to generate, for org links export/publish to Html, elements where img src URL starts with a slash, like this