One most useful example of using dired (Emacs)

What is your most useful example of using legacy mode in Emacs? Any good tricks? Please, one example per answer.

+6
emacs dired
source share
5 answers

For me, wdired is one of the most pleasant features that will be used with dired, it allows you to do all kinds of emacs by editing magic things in the directory to be able to rename files, see part of the documentation on the emacswiki page:

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

+10
source share

Wdired mode is a cool option for renaming photos, etc. If you learn how to embed lisp code in your regular expression, you can do interesting things with dates and names, etc.

 Mx dired (navigate to the folder) Mx wdired-change-to-wdired-mode Mx replace-regexp (enter search and replace expressions) Cc Cc 

I have some more tips for tailoring my blog.

link text

+6
source share

On Windows, I bind this function to a key (Cc Co). Then I need only one key to open each file (pdf, ps, dvi, jpg, au, wmv, ... you name it).

 (defun dired-w32-shell-open () "Open file in Win32." (interactive) (let ((file (w32-convert-filename (dired-get-filename)))) (w32-shell-execute "open" file) )) 
+2
source share

It is often useful for me to run find-grep-dired to get a list of files in the tree containing the given patten, and then use t to mark them all in order (or more selectively, if necessary) and Q to start interactive search and replace in all marked files (usually for the same template to change it everywhere).

+2
source share

I don’t know about the “single majority”, but the gnus-dired.el has several useful utilities for quickly adding attachments to the letters you create. In the past, I found it quite useful.

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

Here 's a snippet of Sacha Chua on some useful features.

0
source share

All Articles