I have several files marked in dired-mode, and I'd like to run a command on (say
(delete-trailing-whitespace) on each of them.
Is there a built-in way to do this, or do I need to write it myself?
Basically I want to do something like
(dired-do-shell-command) but I want to eval an emacs expression rather than a shell command. I want to do this within emacs on the files I have marked, so I can't use