notes from /dev/null

by Charles Choi 최민수


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:

  1. Mark the items of interest in Dired.
  2. 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: run compile on 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.

mdired v1.0 is now available on MELPA.

emacs

Past Articles

5
OCT
2026

Announcing triode.el

Announcing 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 IBuffer

How 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

restlib is a utility library for building REST clients in Emacs Lisp.

read more
24
AUG
2026

Announcing shazam.el

Announcing an integration between Emacs and the Shazam music recognition service on macOS, shazam.el.

read more
18
AUG
2026

Simplifying Setup for Casual

Casual 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 app

Announcing 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 You

Some 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 Service

No, Emacs is not an operating system but this post scrutinizes why some might say that.

read more

Page 1 / 20   >

 

About • Mastodon • Bluesky • GitHub

Feeds & Tags •
Get Scrim for macOS • Get Captee for macOS

Powered by Pelican