dired

In emacs dired, how to find/visit multiple files?

If I have multiple files marked, how do I find/visit all those marked files in emacs, beside running dired-find-file on each of them? Is there a build-in command, or do I need some extra lisp code? ...

Emacs Dired rename with alternative tool

In dired you can rename files just by editing the directory listing and then saving it. Is it possible to use use an alternative method for renaming when using dired for renaming? I want to use "svn mv", "bzr mv" or "git mv" instead of just renaming, so that I can register the extra metadata in the source control system. ...

How do I uncompress/unzip within Emacs

Hi, I would like to run unzip (or even zip) within dired or a dired-like buffer. Is there anything like this? I would like something similar as in the Nautilus file manager: i.e., selecting files and then pressing a keystroke to get these files into a new archive file. Thank you ...

function to call same shell command in dired

hi, i'd like to be able to call the same shell command on the marked files in dired without the need for emacs to prompt the command input as the command will always be the same. in particular, the command is "open" (for mac os x). i tried to hack the function dired-do-shell-command in dired-aux.el but i don't understand the interacti...

How do I stop emacs dired mode from opening so many buffers?

When I use dired mode to browse around and find a file I want to open in Emacs, dired opens a new buffer for each directory I visit when looking for the file each time I select a directory with Enter, which means I can end up with a lot of buffers I don't want: . * newer 0 Fundamental c:/work/stackoverflow/batc...

How do I hide number of links in dired?

99.9% of the time, I don't care how many links are pointing to a file. How do I get dired (or alternatively, ls) to not display the number of links? For reference, the output of ls -l is something like: -rw-rw-rw- 1 root dir 104 Dec 25 19:32 file The number of links, in this case, is 1. ls has a flag to remove the group number (10...

Single most useful example of using dired (Emacs)

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

Is it possible to use align-regexp in wdired mode (Emacs)?

Is it possible to use align-regexp in wdired mode (Emacs)? I want to align folder names that contain a space after the first word. So: folder1xxx xxxxx folder2xx xxxxxx folder3xxxx xxxxx where x can be any alphanumeric character, should become something like this: folder1xxx xxxxx folder2xx xxxxxx folder3xxxx xxxxx As of now ...

dired mode single window? (emacs)

Hi, is there a way to have dired operate in a single window so that when I traverse through directories I don't have n number of dired buffers for the intermediate directories? However - if I start another dired buffer in a completely separate directory (from the minibuffer rather than hitting [enter] on a subdirectory in an already open...

Icons in dired in Emacs (on Mac or Linux)

I'd like to have dired show a little icon next to each file, similar to what you'd see in "list" or "details" view on a graphical file browser. Someone posted a similar question but the only answer was for Windows only; I want to be able to do this on Linux or Mac. ...

problem in `delete-directory` with enabled `delete-by-removing-to-trash`

There is a strange behavior of delete-directory function with enabled flag delete-by-removing-to-trash. It deletes files one by one instead of applying move-file-to-trash to the directory. As a result emacs deletes big directories slowly and there are many files in the trash after deleting, so it is impossible to restore the directory. ...

How do I create an empty file in emacs?

How can I create an empty file from emacs, ideally from within a dired buffer? For example, I've just opened a Python module in dired mode, created a new directory, opened that in dired, and now need to add an empty __init__.py file in the directory. If I use C-x C-f __init__.py RET C-x C-s then emacs doesn't create the file because no...

Cutomizing dired

I just came across this dired mode screen at Wikipedia. I am looking into those customizations. Regarding colors, I guess just specifying the correct faces will do, but how do I get dired to show file sized in kbytes by default? And the available space in MBs (top line)? ...

How can I highlight different types of file in dired mode in Emacs?

In a nutshell, I want to have different faces for some types of file in dired mode. I don't think it matters, but I am using Aquamacs. The example I will use here is .tex files. If I can do it for .tex, then I can just apply the same structure to do create other faces for other types of files. From what I understand, I have to create a...

is there an emacs tool to show a directory structure as a tree?

I am aware of Speedbar (I prefer the structure in the same frame as the rest of my work), and dired shows too much information. I'm after something like the svn-status tree representation. Is there anything like that? Thank you. EDIT: Here's what I found the most intuitive: I am using Speedbar with the following hack from here. I had t...

Where did dired-omit-toggle disappear in Emacs 23.2?

The challenge of upgrading from Emacs 21.2 to 23.2 continues... In my .emacs I have the very convenient: (global-set-key (quote [f4]) (quote dired-omit-toggle)) It used to work since Emacs 18... but it no longer works in Emacs 23.2: Lisp error: (void-function dired-omit-toggle) Any idea how I can replace this functionality in ...

Open some directories recursively in Dired

I want to show a directory in Dired with some sub-directories opened recursively (as if I passed "R" option for them). Is it possible to do this in Emacs? Any ideas how to implement this easily in Elisp? In windows explorer I would press '*' in folders window to open a directory recursively (of course only sub-directories are visible, n...

emacs-dired and globalff

Hi, How can I pass the output of globalff to emacs-dired. Essentially I am looking for something corresponding to find-name-dired that works with output of globalff. ...

dired list files sorted by access time

Hi, How can I list the output of this command ls -ltDR `find . -maxdepth 4 -type f -name "*.org"` within dired-buffer. The above command lists all org files sorted by access time. Thanks, Sandeep ...

Is there a way to list drive letters in dired ?

On windows, how could I open a dired buffer showing all drive letters. When you do C-x d you should always provide a directory, but I want to start at the drive letters level instead of a root directory of a particular drive. If no standard solution exists, do you have one (an extension to dired ?) ? or links to articles on the subject ...