tags:

views:

317

answers:

3

What is your single most useful example of using dired mode in Emacs? Any nice tricks? Please one example per answer.

A: 

I don't know about 'single most' but the gnus-dired.el module has some nifty utilities to quickly add attachments to mails you're composing. I've found it quite useful in the past.

http://www.koders.com/lisp/fidF2236488FD787692D0859F1D23403E205AEFE048.aspx?s=zombie

Here is Sacha Chua's snippet on some useful functions.

Noufal Ibrahim
+5  A: 

For me wdired is one of the nicest most for dired it allow to do all sort of emacs editing magic things on a directory to rename the files :

http://www.emacswiki.org/emacs/WDired

Chmouel Boudjnah
Thanks! This question should also be suited for you to answer:http://stackoverflow.com/questions/2034814/is-it-possible-to-use-align-regexp-in-wdired-mode-emacsThanks in advance.
Michiel Borkent
+2  A: 

wdired mode is cool for renaming photographs and so on. If you learn how to embed lisp code in your regular expression you can do interesting things with dates and names etc.

M-x dired
(navigate to the folder)
M-x wdired-change-to-wdired-mode
M-x replace-regexp
(enter search and replace expressions)
C-c C-c 

I have a few more tips on dired on my blog.

link text

justinhj
Please only one answer per post. Thanks.This question should also be suited for you to answer. Thanks in advance! http://stackoverflow.com/questions/2034814/is-it-possible-to-use-align-regexp-in-wdired-mode-emacs
Michiel Borkent