emacs-orgmode
[Top][All Lists]
Advanced

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

[O] How to advice around org-insert-link to disable desc part of link?


From: stardiviner
Subject: [O] How to advice around org-insert-link to disable desc part of link?
Date: Sun, 11 Nov 2018 13:47:45 +0800
User-agent: mu4e 1.1.0; emacs 26.1

I use org-attach to add/download image file from local or web url. Then [C-c 
C-l] (org-insert-link) to insert link from previous added attach image file.

In some places like ox-html, ox-epub, they use inline images without desc to 
display image. If has `[desc]` part, the image will become a link. So I hope 
can add an advice around function `org-insert-link` or somewhere should.

Anybody knows how to do this? Can you show the code? I checked out 
`org-insert-link` source code, don't know how to add advice around it.

-- 
[ stardiviner ]
       I try to make every word tell the meaning what I want to express.

       Blog: https://stardiviner.github.io/
       IRC(freenode): stardiviner, Matrix: stardiviner
       GPG: F09F650D7D674819892591401B5DF1C95AE89AC3
      



reply via email to

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