logoalt Hacker News

My Emacs Configuration (Dired)

35 pointsby meysamazadtoday at 1:47 PM12 commentsview on HN

Comments

krupantoday at 5:43 PM

Just FYI, dired without any configuring or customizing is pretty rad, especially with wdired-mode for editing filenames. You don't need to read this blog post to benefit from it.

Also, wgrep-mode for editing files is amazing

show 1 reply
xenodiumtoday at 7:58 PM

Tangentially related, I wrote https://github.com/xenodium/dwim-shell-command to save all sorts of command invocations (I'm looking at you ffmpeg) and easily batch apply to dired files. Here's a demo video https://www.youtube.com/watch?v=77NtPfgr4x0

clircletoday at 4:31 PM

Thanks, dired-hide-details-mode is particularly neato. I also learned a few things about marking.

stackghosttoday at 5:00 PM

I use emacs almost every day, and it's a continual source of frustration that the community seems allergic to sane defaults.

If the editor ships a built in file manager, that file manager should not require explicit configuration to open e.g. a jpeg in an image viewer by default. We've had `xdg-open` for years now, it's kind of absurd how far behind emacs is in so many ways.

show 3 replies
TacticalCodertoday at 8:09 PM

> So the filenames could be edited as usual text: with the help of isearch-query-replace-regexp, macros and other cool Emacs features.

One dired/wdired feature I use all the time is to edit filenames by using multiple cursors. Either that or, as TFA mentions, keyboard macros. It's really powerful.

The author also has a blog entry about getting rid of use-package:

https://eugene-andrienko.com/2025-10-10-emacs-ditch-use-pack...

It's funny because my config is a half-arsed one where it's partially use-package and partially old-school config. It's an old config and at some point I move to use-package and now I moved back to "not use-package" but I mostly kept the part that are using use-package as-is.

I've got about 3000 to 4000 elisp config lines. And counting...