* How to advice around org-insert-link to disable desc part of link?
@ 2018-11-11 5:47 stardiviner
0 siblings, 0 replies; only message in thread
From: stardiviner @ 2018-11-11 5:47 UTC (permalink / raw)
To: org-mode
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-11-11 5:47 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-11 5:47 How to advice around org-insert-link to disable desc part of link? stardiviner
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).