1

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)
prosseek
  • 182,215
  • 215
  • 566
  • 871

1 Answers1

0

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

Community
  • 1
  • 1
prosseek
  • 182,215
  • 215
  • 566
  • 871