Menu
  • HOME
  • TAGS

How to work with ido-vertical-mode inside dired-mode

emacs,dired,ido

You mentioned in the comments that you are using ido-vertical-mode in conjunction with ido-everywhere. There are several things you can do: Completely disable ido-everywhere (as you suggested yourself) by removing (ido-everywhere) from your .emacs file. Disable ido-everywhere only for dired buffers: (defun disable-ido-everywhere () (ido-everywhere -1)) (add-hook 'dired-mode-hook 'disable-ido-everywhere) Don't...

Distinguish between single (*.gz) and double (*.tar.gz) file type extensions

emacs,elisp,dired

Not sure IIUC, here a draft how to do that part in question: (defun gz-only () "List marked files in dired-buffer ending at `.gz', but not ending at `.tar.gz'" (interactive) (let ((flist (dired-get-marked-files)) erg) (dolist (ele flist) (and (string-match "\.gz$" ele)(not (string-match "\.tar\.gz$" ele)) (add-to-list 'erg ele))) (when (interactive-p) (message...

How to sort files in emacs dired?

sorting,emacs,dired

You may customize the sort order by providing an argument to the dired-sort-toggle-or-edit which is bound to the s keystroke. So to answer your question, just type Control+u s and pass the -lS switches. You may pass -lhS for human readable results....

Error in Dired sorting on Windows (with Cygwin Emacs)

windows,emacs,cygwin,dired

Try setting dired-listing-switches to "-aFl" instead of "-a -F -l". Maybe that will make some difference (but it does not change anything for me). What is your value of ls-lisp-use-insert-directory-program? If it is non-nil try setting it to nil, so that you use ls-lisp instead of Cygwin's ls. (At least...

Customising the buffer name of a dired buffer

emacs,buffer,dired

You probably don't want to do that. Some Dired features depend on the buffer name being associated with the directory. A better approach might be to have a command that switches to the only Dired buffer, since you will be having only one at a time. (defun switch-to-dired-buffer () "..."...

How to enable `dired-auto-revert-buffer` only for Dired buffers without inserted subdirs?

emacs,revert,dired

Good question. Perhaps someone else will have a better idea, but as far as I can see, you will need to set dired-auto-revert-buffer to a function (not to t) that returns non-nil only when there are no inserted subdirs. This should do the trick: (setq dired-auto-revert-buffer (lambda (_dir) (null (cdr...

Emacs dired, what controls the color of the title line of a directory

emacs,dired

The screenshot you show indicates that you are using library Dired+. The face in question is diredp-dir-heading. You can tell what the face is yourself, by asking Emacs. Put the cursor on the text that has that face and hit C-u C-x =, and you will see info about the...

How to omit certain folders on ido-switch-buffers and ido-dired?

emacs,dired,ido

To this end, I found ido-ignore-directories and I used the following line in .emacs to omit these folders: (setq ido-ignore-directories (quote ("~/Applications" "~/Documents" "~/Library" "~/Movies" "~/Music" "~/Pictures" "~/Public"))) ido-ignore-directories is the correct variable, but it matches just the directory name itself, not the full path. (setq ido-ignore-directories '("Applications/" "Documents/"...

in Emacs, how to maintain a list of recent directories?

emacs,elisp,dired,recent-file-list

You ask, in your comment replying to @Stefan's answer: And how do I get from the above to viewing a list of recent directories? - The answer is that you use the little-known fact that if the DIRNAME argument to dired is a list of (a) the new Dired buffer...

in Emacs, how to enable automatic hiding of dired details?

emacs,dired

First, if you use Emacs 24.4 or later (or a developement version past 24.3), then you no longer need either dired-details.el or dired-details+.el. Starting with Emacs 24.4, Dired listing details are hidden by default. dired-hide-details-mode is the relevant mode. If you use dired+.el (Dired+) then you can more easily take...

how to prevent Emacs dired from splitting frame into more than two windows?

emacs,dired

Raise value of split-height-threshold to the extend it will not do another split. You might have to raise split-width-threshold also - in case Emacs thinks it's smart to split that way than. WRT questions in comment: The value to choose IMO depends from number of lines displayed at window. Let's...