2

I use elfeed to read RSS. In each RSS there is an http link to a torrent file. And I want to call an external program (aria2c) to download that torrent link, assuming that there is no such tool within Emacs.

How to write a small function to do this?

BinaryButterfly
  • 18,137
  • 13
  • 50
  • 91
WellTyped
  • 244
  • 2
  • 10
  • 1
    In `dired` mode, you can open a file with an external program by pressing `!` and type name of the program. I'm not sure if this helps, but you can take a look to see how `dired` implement this feature – Trung Ta Sep 20 '16 at 16:55
  • A quick search on melpa leads to this rTorrent client: https://github.com/skangas/mentor – Ehvince Sep 21 '16 at 12:51

1 Answers1

2

Here a simple solution:

(defun open-with-ariac2()
 (interactive)
 (shell-command
     (format (concat "aria2c " (browse-url-url-at-point)))))
djangoliv
  • 1,698
  • 14
  • 26