1

当我在“/abc/hello”中有一个 python 代码-rwxr-xr-x并且我有一个 [[/abc/hello]] 时,我单击链接以运行 hello 代码。我可以更改操作以便编辑(打开编辑器)abc/hello文件吗?

我试过这个

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

[[edit:/abc/hello]]但它不起作用。

我也试过file:/abc/hello,但它也不起作用。

解决了

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

并关闭确认

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

1 回答 1

0

Leo Alekseyev在这篇文章中给了我这个问题的答案。

于 2011-02-18T21:29:30.800 回答