Skip to main content
2 of 3
added 3 characters in body
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Start a process in Elisp

How can the following code be made idiomatic in ELisp? Can the temporary f variable be removed?

(global-set-key [f3] 
  (lambda () (interactive) 
    (let ((f (ffap-file-at-point)))
      (start-process "test" "output" "mpv" f))))
sevo
  • 291
  • 2
  • 6