all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Extend Dired to Call a Function on a File?
@ 2016-10-12 17:46 Brendan Leber
  2016-10-12 20:12 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Brendan Leber @ 2016-10-12 17:46 UTC (permalink / raw
  To: help-gnu-emacs

Greetings!

I have a function I've used to work on files that right now I call
manually with M-x my-shiny-function RET my-shiny.file.  This works
great for the one off file.  Yet I usually have to process batches of
files in a given directory.  Being able to add a key binding to dired
would be awesome as I'm already using dired on the directory to rename
files and such.

I know enough elisp to add the key binding and write the function, I
think.  The place I'm stuck is getting the file name as the first
argument to the function when the binding is pressed.  Can anyone
share some pointers to make this happen?

Thanks!
B

-- 
C++ tries to guard against Murphy, not Machiavelli. - Damian Conway



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-10-13 16:59 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-12 17:46 Extend Dired to Call a Function on a File? Brendan Leber
2016-10-12 20:12 ` Drew Adams
2016-10-12 20:36   ` Brendan Leber
2016-10-13  0:34     ` Drew Adams
2016-10-13 16:59       ` Brendan Leber
2016-10-12 20:18 ` Stephen Berman
2016-10-12 21:12 ` John Mastro

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.