* dired omit mode
@ 2012-12-03 22:19 Florian Lindner
2012-12-03 22:42 ` Drew Adams
2012-12-04 20:45 ` Malcolm Reed
0 siblings, 2 replies; 6+ messages in thread
From: Florian Lindner @ 2012-12-03 22:19 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
I'm using this dired configuration, dired+ installed from melpa
(require 'dired+)
(setq dired-dwim-target t)
(setq dired-recursive-deletes 'always)
(setq delete-by-moving-to-trash t)
(add-hook 'dired-mode-hook
(lambda ()
;; Set dired-x buffer-local variables here. For example:
(dired-omit-mode 1)
))
I want to have dot-files (.*) omitted:
dired-omit-files is a variable defined in `dired-x.el'.
Its value is "^\\.?#\\|^\\.$\\|^\\.\\.$"
Isn't the first regular expression for matching dot-files?
Why are they still displayed when omit-mode ist active?
Another minor question: I've not loaded dired-x. Was it pulled into from
dired+ ?
Thanks,
Florian
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: dired omit mode
2012-12-03 22:19 dired omit mode Florian Lindner
@ 2012-12-03 22:42 ` Drew Adams
2012-12-04 20:45 ` Malcolm Reed
1 sibling, 0 replies; 6+ messages in thread
From: Drew Adams @ 2012-12-03 22:42 UTC (permalink / raw)
To: 'Florian Lindner', help-gnu-emacs
> I want to have dot-files (.*) omitted:
>
> dired-omit-files is a variable defined in `dired-x.el'.
> Its value is "^\\.?#\\|^\\.$\\|^\\.\\.$"
>
> Isn't the first regular expression for matching dot-files?
No, ^\\.?# matches a file name that begins with either `#' or `.#', that is, an
autosave file or a lock file. The other two parts match file names `.' and
`..'.
`C-h v dired-omit-files' tells you this:
The default is to omit `.', `..', auto-save
files and lock files.
> Why are they still displayed when omit-mode ist active?
See above. Try this value instead: ^#\|^[.].* - it should match all dot files
(including lock files), the directories `.' and `..', and autosave files.
> Another minor question: I've not loaded dired-x. Was it
> pulled into from dired+ ?
Yes. Dired+ has this code:
(require 'dired)
(require 'dired-aux)
(require 'dired-x nil t)
The last sexp means that Emacs tries to load Dired-X if it can find it, but no
error is raised if it cannot be loaded.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired omit mode
2012-12-03 22:19 dired omit mode Florian Lindner
2012-12-03 22:42 ` Drew Adams
@ 2012-12-04 20:45 ` Malcolm Reed
2012-12-04 20:58 ` Malcolm Reed
1 sibling, 1 reply; 6+ messages in thread
From: Malcolm Reed @ 2012-12-04 20:45 UTC (permalink / raw)
To: help-gnu-emacs
Florian Lindner <mailinglists@xgm.de> writes:
> dired-omit-files is a variable defined in `dired-x.el'.
> Its value is "^\\.?#\\|^\\.$\\|^\\.\\.$"
Hello,
(setq dired-listing-switches "-lah")
This works fine for me.
Best regards.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: dired omit mode
2012-12-04 20:45 ` Malcolm Reed
@ 2012-12-04 20:58 ` Malcolm Reed
2012-12-04 21:28 ` Drew Adams
0 siblings, 1 reply; 6+ messages in thread
From: Malcolm Reed @ 2012-12-04 20:58 UTC (permalink / raw)
To: help-gnu-emacs
Malcolm Reed <squalllists@gmail.com> writes:
> (setq dired-listing-switches "-lah")
Oh, sorry. I copied the other line.
(setq dired-omit-files "^\\...+$")
It hides dotfiles including "." and ".." dirs.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: dired omit mode
2012-12-04 20:58 ` Malcolm Reed
@ 2012-12-04 21:28 ` Drew Adams
2012-12-04 21:32 ` Drew Adams
0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2012-12-04 21:28 UTC (permalink / raw)
To: 'Malcolm Reed', help-gnu-emacs
> (setq dired-omit-files "^\\...+$")
> It hides dotfiles including "." and ".." dirs.
But it has nothing to do with `dired-omit-mode'.
So no toggle, no handling of `dired-omit-extensions', etc.
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: dired omit mode
2012-12-04 21:28 ` Drew Adams
@ 2012-12-04 21:32 ` Drew Adams
0 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2012-12-04 21:32 UTC (permalink / raw)
To: 'Malcolm Reed', help-gnu-emacs
> > (setq dired-omit-files "^\\...+$")
> > It hides dotfiles including "." and ".." dirs.
>
> But it has nothing to do with `dired-omit-mode'.
> So no toggle, no handling of `dired-omit-extensions', etc.
>
Arggh. Please ignore. I was looking at the other line you mistakenly sent the
first time, (setq dired-listing-switches "-lah"), and replying to that, but I
then copied your correction without reading it.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-12-04 21:32 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-03 22:19 dired omit mode Florian Lindner
2012-12-03 22:42 ` Drew Adams
2012-12-04 20:45 ` Malcolm Reed
2012-12-04 20:58 ` Malcolm Reed
2012-12-04 21:28 ` Drew Adams
2012-12-04 21:32 ` Drew Adams
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.