Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Dired is a major mode that allows users to edit files and directories on a file system. It is essentially a file browser, with a wide range of features and an appearance similar to the `ls` command.

1
vote
2answers
54 views

Disable ivy for find-file

Is it possible to disable ivy-mode for file prompts? In a past I used find-file to copy current file name or path to file. dired-do-rename also is broken by Ivy: no default completion for current ...
1
vote
2answers
36 views

dired-hide-details show size and date [duplicate]

I can't see that there is anyway in dired to hide permissions and ownership, but show size and date. As the only user on the system and using a version control system, my files generally belong to me ...
0
votes
1answer
39 views

Dired: File open using external viewers, based on filetype, and without prompting

When I hit RETURN on a filename in Dired, I'd like Emacs to automatically do one of several things, depending on the file's type: 1 - If it's a text file, I'd like to open the file in a new buffer in ...
1
vote
1answer
82 views

How can I open 'dired' mode from any buffer by ONE hotkey?

I am using Windows 10 and Emacs 26.1. Suppose I open some file: And now I want fast open dired mode. The result must be like this: I want to do this by ONE hotkey direct from a buffer. E.g. C-x j. ...
0
votes
1answer
35 views

How to show details initially in Dired mode?

windows 10, emacs 26.1 Here dired in summary mode: If I want to show detail I press ( and here result: Nice. But I want always to show dired in details. So I set this variable: '(global-dired-...
3
votes
3answers
73 views

Keyboard macros or command for quick refiling using dired or similar

I scan all the mail (not email, but good ol' mail) I receive and have these saved as PDF files into a directory, which we think of as an inbox. I would like to find a workflow to quickly refile these ...
0
votes
1answer
24 views

Dired buffer's cursor change of behavior in dired+

I have in the past been using (require 'dired) (require 'dired-x) quite happily. Recently I've been even happier after switching to (require 'dired) (require 'dired-x) (require 'dired+) (require '...
0
votes
0answers
22 views

How run bat, exe files?

Windows 10 (64 bit), Emacs 26.1 Here my init.el (require 'openwith) ;; Settings for package "openwith" (when (require 'openwith nil 'noerror) (setq openwith-associations (list (list (...
0
votes
0answers
15 views

Why “dired-jump” open folder in dired mode with split mode?

windows 10 (64 bit), Emacs 25.1, dired+ I open my init.el. The I press C-x C-j (dired-jump) as result open folder d:/Programs/Emacs/.emacs.d/" in dired mode with split vertically. Why? I need to ...
0
votes
0answers
21 views

Jump to bookmars - how show only last folder?

windows 10, emacs 26.1 In my init.el (diredp-toggle-find-file-reuse-dir 1) As result when I press Enter in helm-mini buffer show only last opened folder. Nice. This exactly what I need. But... ...
0
votes
2answers
47 views

dired+ not open in same buffer

Windows 10 (64 bit), Emacs 26.1, dired+-20170818.1411 I want (in dired mode) to open all folders in ONE buffer when press Enter. So in my init.el (diredp-toggle-find-file-reuse-dir 1) But it not ...
0
votes
0answers
18 views

Russian file names problem on linux-mint

On my system, there are files and folders with russian file names. However, in dired buffers and filename complations they are garbled (as mojitake). The problem is compounded by the fact that even ...
0
votes
0answers
21 views

Advance work with archive (e.g. zip) in Dired+ mode

Windows 10, Emacs 25.1, Dired+ If I want to work with archive (e.g. zip) I use Total Commander. It's has many capabilities to work with many type of archives: zip, 7z, rar, gz, tar and so on. Here ...
-1
votes
0answers
28 views

Open files from dired won't work when they contain multi-byte characters, why?

when I launch the application based on the extension types from dired, everything works except that the file name contains some Multi-byte(Japanese) characters. Strangely, it even works when the ...
3
votes
0answers
27 views

Switch between term and shell keeping directory

I am a beginner user of emacs so please answer being aware of this. I use dired to connect to a remote computer and navigate directories. I sometimes want to go to a shell or terminal on the remote ...
3
votes
1answer
59 views

Move point to beginning of file name in WDired

Example: -rw-rw-r-- 1 bs bs 20598 Jul 28 14:55 I-am-a-file.txt ^(cursor here) A magic shortcut key is pressed, then: -rw-rw-r-- 1 bs bs 20598 Jul 28 14:...
1
vote
0answers
28 views

Folder navigation on remote windows machine can't see folders with spaces

I've been trying to navigate folder structures on a remote Windows machine with Cygwin installed, but I can't seem to navigate to folders which contain a space in them. Emacs claims that "File no ...
2
votes
2answers
127 views

Dired: Open files by external application in Linux

I want to open several types of files in Dired by different external applications. For example: .doc files with LibreOffice .pdf files with evince .jpg files with pinta etc... How do i configure ...
0
votes
1answer
52 views

Add dired buffers to evil jump list

I want dired buffers to be included in jump list so I can visit them with Ctrl-i and Ctrl-o. One possible catch is that My Ctrl-x d binding is taken by ido-dired. What I've tried so far (without ...
0
votes
2answers
194 views

Project management in projectile or other, like Sublime Text's projects

Ever since I first started using Emacs (Spacemacs) a few months ago I've been trying to set up a sane multi-project workflow. I got the single project workflow going by having Emacs start up into what ...
1
vote
3answers
104 views

how open xlsx file in excel

(On MacOS, emacsclient in -nw mode ) when point is at a xlsx file in a dired buffer, how can I open the xlsx file with MS-Excel. I have Excel installed in the Mac. and the xlsx file extension is ...
0
votes
1answer
60 views

Updating `dired-directory` after renaming a file

Q:   I have a list of strings: '("apple" "pear" "peach" "nectarine" "watermelon"). How can I replace "peach" with "plum" and maintain the same order of fruits?  [CAVEAT: The list may be very long ...
3
votes
1answer
147 views

Splitting window vertically (rather than horizontally) when searching in Dired

My Emacs Dired window is wider than it is tall. After marking some files (say %m *.cpp) in Dired and running M-x dired-do-find-regexp <REGEXP> (A), I find myself in split-window-below (ex split-...
0
votes
0answers
51 views

Re-map evil-commentary key in dired mode

I am trying to re-map a key in evil-mode/evil-commentary-mode when in dired-mode. I tried to add a hook to dired-mode to disable the minor commentary mode, but it disables it for other major modes as ...
0
votes
1answer
59 views

Emacs Dired `C-x C-j` opens a new frame instead of a new window

I am using Aquamacs 3.3 GNU Emacs 25.1.1 and Dired+. Sometimes the key sequence C-x C-j opens the Dired buffer in a new frame instead of a new tab in the running frame. I want the behaviour that the ...
5
votes
1answer
117 views

Follow symlinked directories in Dired

On a Linux machine I symlink some directories into my home directory like this: /home/mrdarcy: total used in directory 231 available 520120 drwxrwxr-x 3 4k 04-30 18:16 bin drwxr-xr-x 2 4k ...
1
vote
1answer
42 views

Dired / Wdired: How to test whether a filename is relative / absolute

I am creating a dired-mode buffer with: (dired (directory-files-recursively default-directory "")) This gives me absolute paths for each file, which is great. I am still unsure how the default-...
4
votes
2answers
55 views

Subdirs in Dired: display relative paths

I've hacked something together for myself to hide/toggle columns of my choice in Dired and display what's left with a less obtrusive face. As a side effect this makes the width of Dired buffer small ...
4
votes
2answers
145 views

How to make sure I run Dired+

I have downloaded and put the dired+.el file into /Users/ri/.emacs.d/elisp and added the following code to the init file (add-to-list 'load-path "/Users/ri/.emacs.d/elisp") (require 'dired+) When ...
5
votes
1answer
348 views

Is it possible to load Dired+ automatically with use-package?

I'm trying to add dired+ to my init.el with use-package but I can't seem to find the name of dired+ on any of the package repositories ( marmalade, melpa or elpa ). I'd been able to add dired+ after ...
1
vote
1answer
40 views

Printing a list of folders which has been modified today

Is there any way to export a list of folder names which has been modified today using a dired mode or any other package on emacs
6
votes
5answers
614 views

Simple ways to copy/paste files and directories between dired buffers

Is there a simple M-w C-y approach to copy paste files and directories between two dired buffers? I mean marking some items (files and buffer) by m then copying them by M-w (or another shortcut), ...
0
votes
0answers
56 views

How can I set a directory buffer in one window to open files in another window?

The setup I am going for would look something like this: ------------------------------ | | | | | B | | | | | A |----...
1
vote
1answer
70 views

How can I use Regexp to rename files in Dired mode?

I've have some videos (.mp4) with subtitles files (.SRT) that I need to rename. These files have long names so I can only rename them manually. I've tried Python to rename them, but it fails. I've ...
2
votes
1answer
47 views

Rename full path folder in dired mode

Windows 10, Emacs 25.1, Dired+ Suppose I has folder d:\TEMP\test\com\myproject\android\common\ Here: I want in dired mode by one step to rename full path to net\newproject\iphone\data. So as ...
3
votes
1answer
132 views

Show git branch in dired modeline

I would like to see the git branch shown in the dired mode-line at least for the top directory of git projects. Anyone done this or know how to?
0
votes
1answer
182 views

prelude-ivy: How to select and open multiple files

I have installed Ivy (along with Swiper and Counsel) as part of Prelude by doing a (require 'prelude-ivy) in my prelude-modules.el file. It seems to work, but I am not able to figure out how to do ...
0
votes
1answer
47 views

sanityinc-tomorrow-eighties theme fails to show dired mode colors

I have the theme sanityinc-tomorrow-eighties enabled using (load-theme 'sanityinc-tomorrow-eighties t). I love this theme but my dired buffers do not show colors. I have installed and enabled dired+...
4
votes
2answers
96 views

Delete file owned by root in dired mode

I am trying to delete a file that is owned by root from Emacs dired opened as a regular user. I get the following error: (file-error Removing old name Permission denied /opt/file) How can I execute ...
11
votes
2answers
1k views

Dired+ missing from MELPA

I am trying to install dired+ from MELPA but it seems that it no longer is listed. I also checked here: https://melpa.org/ Is this normal?
2
votes
1answer
88 views

Cherry-pick columns to display in Dired or Dired+

I would like to customize the amount of detail displayed in Dired. Basically I would like to cherry-pick the "columns" to display. More precisely, I would like to hide the "owner group" information. ...
0
votes
1answer
68 views

Tramp FTP cant connect. tramp-file-name-handler: Host name must not match method “ftp”

I am trying to connect ftp using tramp I am using C-x C-f /ftp:username@subdomain.hostname.com I get an error message in the mini buffer: tramp-file-name-handler: Host name must not match method "...
0
votes
2answers
180 views

Newbie: Simple setup for dired in sidebar?

Simple question from a new Emacs user: I'd like to have my editing window have a sidebar (or a divided window, or a frame--I'm not sure of the terminology or the options here) that has a dired (or ...
0
votes
0answers
28 views

Mode dependant key binding

I wrote an elisp function which I would like to bind to the key "C" but only in dired-mode; otherwise it should be the capital letter C. However I am not very familiar with elisp and I did not manage ...
1
vote
1answer
18 views

Dired: Insert/Moved to this subir for all subdirs?

windows 10, emacs 25.1, dired+ In dired mode if I want to open subfolder in the same folder as parent folder I press i Here example: OK. It's work fine. But if folder has many subfolder I need to ...
1
vote
0answers
42 views

Adding another column of information to dired (text snippets by Gnome Tracker)

I have a small Emacs Lisp function which calls Gnome Tracker's FTS Search via D-Bus and display results in a dired buffer. [ https://gist.github.com/vishalbelsare/4f78722856a6bca7faf1f73353892025 ] ...
0
votes
1answer
99 views

Open emacs in Dired mode

I would like to open emacs in dired mode . files and folders should be organised in most recent file first order. Moreover I would like to highlight the Org files for easy selection. Is this possible?
2
votes
1answer
63 views

Why does ^#.*#$ not capture recursively inserted files?

While considering some refactoring, I made changes throughout a project. Halfway through the changes, and before saving, I found it doesn't quite work. I exited emacs and restarted. (That's probably ...
0
votes
0answers
27 views

Too many dried buffers opening [duplicate]

When navigating a deep directory structure with 'dired', I end up with many 'tired buffers' inside my 'list-buffers' (C-x C-b) I was just pressing enter to traverse the nested directory tree. I don't ...
1
vote
1answer
205 views

Thumb could not be created for file xxx.png

Windows 10, Emacs 25.1, Dired+ I want to open image file from Emacs. I start Emacs by emacs -Q So in tutorial: To enter Image-Dired, mark the image files you want to look at in the Dired buffer, ...