How to run a unix utility on file at point in dired in Emacs Lisp?
September 09, 2023
(let* ((fn (dired-file-name-at-point))
(fn-base (file-name-base fn))
(cmd (format "convert %s %s" fn (concat fn-base ".jpg"))))
(shell-command cmd))