How to open http://XYZ from my *own* tag in org-mode?

巧了我就是萌 提交于 2019-12-11 12:53:16

问题


When I have ([abc] or [[abc]] or *abc ... ) in org-mode text, how can I link that to a command http://prosseek/wiki.php/abc?action=edit?

I want to edit my own wiki page from simple org-mode link. The simple way would be manually input [[http://prosseek/wiki.php/abc?action=edit][abc]], but I want to generate the first http part automatically.


回答1:


This is the code snippet you're looking for:

(setq org-link-abbrev-alist
 '(
   ("mine" . "http://prosseek/wiki.php/%s?action=edit")
))

This will let [[mine:abc]] to jump to your link.



来源:https://stackoverflow.com/questions/5035300/how-to-open-http-xyz-from-my-own-tag-in-org-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!