DiredMode is the mode of a Dired buffer. It shows a directory (folder) listing that you can use to perform various operations on files and subdirectories in the directory. The operations you can perform are numerous, from creating subdirectories to byte-compiling files, searching files, and of course visiting (editing) files.
The closest thing to Dired in MS Windows is Windows Explorer. In Emacs, we sometimes speak of “editing” a directory, not “exploring” it, but the behavior is similar.
The best way to learn about Dired is to try it out: type
‘C-x d’ or
‘C-x 4 d’ and enter a directory name. Then, try various Dired commands. The most important are available on the menu bar menus Operate, Mark, Regexp, Immediate, and Subdir. Use the menu to discover some of what is available; the menu also indicates the key sequences you can use as an alternative.
It’s possible to assign DedicatedKeys keys, such as
shift+F1), to open up a directory listing. For example, adding the following to your InitFile allows
S-<f1> to visit your home directory in Dired Mode.
(global-set-key (kbd "S-<f1>")
You can read more about Dired mode by reading the help displayed using
‘C-h m’ in a Dired buffer. Even more information is available in the EmacsManual:
‘C-h i’, choose Emacs, then choose Dired under Advanced Features. (Or read Dired online.)
Vanilla Dired distributed with Gnu Emacs
- Dired X – Many extra features (library
- DiredOmitMode – Selectively remove files and subdirectories from the display, to reduce clutter.
- DiredSearchAndReplace – Search multiple files.
- WDired – Rename files by editing names directly in the Dired buffer.
Dired tips and additional features
- Anything – After evaluating
(anything-dired-bindings), some dired commands are replaced with Anything-based interface.
- Bookmark+ – (1) In the bookmark list, `
M-d >’ opens Dired on the marked file and directory bookmarks (only). (2) In Dired,
‘C-j’ jumps among different “views” or states of the same Dired buffer. (3) You can bookmark any Dired buffer – its current state. Jump among Dired bookmarks using
‘J’ in Dired (or
‘C-x j d’ globally). (4) In Dired,
‘M-b’ bookmarks each of the marked files and dirs.
- Dired+ – Extends standard Emacs libraries
dired-x.el in many ways.
- DiredBookmarks – Save/restore Dired state persistently, including switches, marked files, inserted subdirectories, and hidden (sub)directories.
- DiredDetails – Lets you hide or show the file and directory details in a Dired listing, to save space and clutter. When details are hidden, all you see (and all IncrementalSearch sees) are the file names.
- DiredDragAndDrop – Lets you drag-and-drop files.
- DiredEfap – Rename the file a point in Dired.
- Diredful – Colorful file names in dired buffers.
- DiredFileTypeFaces – Colorful file names in dired buffers.
- DiredPower – Various Dired tips and features.
- DiredReuseDirectoryBuffer – Make Dired reuse an existing Dired buffer
- DiredSorting – Dired tips and addons for sorting listings
- DiredSortCriterias – minimalistic dired sorting by different criterias
- DiredSync – Synchronize directories within dired
- DiredTar - extension for creating and unpacking tar-files from Dired
- DiredTweaks – Small Dired tweaks.
- DiredView – Browse and select files using the first character of their names.
- dired-toggle.el – provide a simple way to toggle dired buffer for current directory, similar to
- dired-visit-history.el – add dired visits to
- Files+ –
‘C-x C-f’) and related commands with Dired
- Together with ls-lisp+.el, modifies
‘insert-directory’ so that Dired’s second header line lists the number of files:
space used 49439 available 56233408
- Icicles - Dired Enhancements – minibuffer regexp completion and completion-candidate cycling to navigate directories and perform operations on files
- DiredIsearch – Run
‘isearch’ in Dired, but match only file names
- DiredLis – Letter
‘isearch’ in dired mode, not nedd press some keys to active
- OperatingOnFilesInDired – Opening files in associated applications.
- ThumbsMode – Modify dired for automatic image previewing.
- trashcan.el – A recoverable file-deletion system that behaves like the trash can or recycle bin of many operating systems. NOTE: Starting with Emacs 23.2, we have built-in support for using Recycle Bin or system Trash folder. See NEWS by pressing C-h n.
- Tumme – Lets you navigate among image files in Dired, with thumbnail previews and more.
Windows specific tips and additional features
Alternatives to Dired
CategoryDirectories CategoryModes CategoryProgrammerUtils