01 Nov 2026
Announcing mdired, or adding a chainsaw to Dired
The ability to mark items in GNU Emacs Dired allows for bulk operations on both files and directories. With marking, onerous tasks can be turned into a trivial ones.
While default Dired has many bulk operation commands, not everything is covered. That is the motivation for mdired, an Elisp package which extends Dired with some SIMD-style commands.
Using these commands fall into two steps:
- Mark the items of interest in Dired.
- Run the mdired command.
mdired supports the following four commands:
-
mdired-copy: copy a single file to multiple directories. -
mdired-do-command: run an Elisp command or named keyboard macro on multiple files. -
mdired-compile: runcompileon multiple directories. -
mdired-byte-recompile: byte-compile selected files or directories.
Refer to the mdired User Guide for more details on usage.
Closing Thoughts
Bulk operation commands are chainsaws. Use them with caution. That said, they are great for improvised workflows:
- “Here’s this file that I want copied to a bunch of directories.”
- “I want to do the same edit operation on this set of files. I’ve got a named keyboard macro ready to go on them.”
- “I want to run the same make command on a bunch of directories.”
As mdired is new, I’m open to feedback on it. Let me know what you think.
Past Articles
| 5 OCT 2026 |
Announcing triode.elAnnouncing triode.el, a remote control interface to the Triode app from Emacs. read more |
| 28 SEP 2026 |
Announcing AquíAnnouncing Aquí, an Elisp package that obtains high-accuracy location updates on macOS using Shortcuts. read more |
| 24 SEP 2026 |
Binding the SPC key in Dired and IBufferHow I put the space bar to work in Dired and IBuffer. YMMV. read more |
| 21 SEP 2026 |
Announcing restlib - a utility library for building Emacs REST clients
|
| 24 AUG 2026 |
Announcing shazam.elAnnouncing an integration between Emacs and the Shazam music recognition service on macOS, |
| 18 AUG 2026 |
Simplifying Setup for CasualCasual v3.0 update is now available on MELPA and NonGNU ELPA with a vastly simplified setup process. read more |
| 3 AUG 2026 |
Announcing now-playing.el, an Emacs interface for the macOS Music appAnnouncing a remote control interface for the macOS Music app from Emacs, keeping in tradition of never leaving it. read more |
| 22 JUL 2026 |
Malleable Computing, Emacs, and YouSome musings on malleable computing using as an example a GitHub issues browser in Emacs. read more |
| 9 JUL 2026 |
In Emacs, Everything Looks Like a ServiceNo, Emacs is not an operating system but this post scrutinizes why some might say that. read more |
Page 1 / 20 >