Controlling the actions with org-mode

不打扰是莪最后的温柔 提交于 2019-12-24 10:11:31

问题


When I have a python code in "/abc/hello" with -rwxr-xr-x and I have a [[/abc/hello]], I click the link to run hello code. Can I change the action so that I can edit (open an editor) abc/hello file?

I tried this

(setq org-link-abbrev-alist
 '(
    ("edit" . "mate %s")))

with [[edit:/abc/hello]], but it doesn't work.

I also tried file:/abc/hello, but it doesn't work neither.

SOLVED

("mate" . "shell:/usr/local/bin/mate %s")

And to turn confirmation off

(setq org-confirm-shell-link-function nil)

回答1:


Leo Alekseyev gave me an answer to this quetion at this post.



来源:https://stackoverflow.com/questions/5044474/controlling-the-actions-with-org-mode

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