Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
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
Accepted
How to adjust dired-omit-mode
We needed to revert-buffer after changing dired-omit-files:
(defun swap-omit-files ()
"Show/hide hidden files except . and .." … (interactive)
(if (string= dired-omit-files "^\\..*$")
(setq dired-omit-files "^\\.\\.?$")
(setq dired-omit-files "^\\..*$")
)
(revert-buffer)
) …
3
votes
1
answer
1k
views
How to adjust dired-omit-mode
(interactive)
(if (string= dired-omit-files "^\\..*$")
(setq dired-omit-files "^\\.\\.? … $")
(setq dired-omit-files "^\\..*$")
)
)
(add-hook 'dired-mode-hook
(lambda ()
(setq dired-omit-mode t)
(define-key dired-mode-map (kbd "M-q …
1
vote
Dired: can't create a regexp to hide all the necessary files
This regexp works successfully: (setq dired-omit-files "^\\..*~?$") …
4
votes
3
answers
743
views
Dired: can't create a regexp to hide all the necessary files
I read the following article: http://qerub.se/hiding-hidden-files-in-emacs-dired about hiding certain files in dired mode. … I wrote the following code:
(setq dired-omit-files "^\\.$|~$")
(add-hook 'dired-mode-hook
(lambda ()
(define-key dired-mode-map (kbd "M-q") 'dired-omit-mode)
))
But only …
2
votes
0
answers
134
views
Dired: manual files sorting for specific directories
When I open it in dired I see this:
bundles
ckeditor
companies
contries
failitators
induction
jquery_update
lwt_shared
members
messages
offices
... …