当我在“/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)