开发者

Controlling the actions with org-mode

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开发者_如何学Go 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)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜