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.
精彩评论