* Re: dired listing (dont display ~ files)
[not found] <mailman.1037791078.30881.help-gnu-emacs@gnu.org>
@ 2002-11-20 11:48 ` Edric M Ellis
2002-11-20 12:25 ` Matthias Meulien
1 sibling, 0 replies; 4+ messages in thread
From: Edric M Ellis @ 2002-11-20 11:48 UTC (permalink / raw)
On 20 Nov 2002, David Holden wrote:
> Does anyone know how I can get emacs Dired not to display files with
> ~ on the end, e.g. backup files in the C-f listing of a directory.
For me, just doing "M-o" in a dired listing is enough - see the
variable dired-omit-extensions, which includes "~".
> Below is my .emacs file, I though the line
>
> '(dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$|^.*~$")
I think you need "\\" before that last "|" for that regexp to work.
Cheers,
Edric.
--
Edric M Ellis
The MathWorks, Ltd., Matrix House, Cowley Park, Cambridge CB4 0HH, UK
Tel: +44 (0) 1223 423 200 Ext: 218
Fax: +44 (0) 1223 423 255
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dired listing (dont display ~ files)
[not found] <mailman.1037791078.30881.help-gnu-emacs@gnu.org>
2002-11-20 11:48 ` dired listing (dont display ~ files) Edric M Ellis
@ 2002-11-20 12:25 ` Matthias Meulien
2002-11-20 16:14 ` David Holden
1 sibling, 1 reply; 4+ messages in thread
From: Matthias Meulien @ 2002-11-20 12:25 UTC (permalink / raw)
David Holden <dh@iucr.org> wrote:
> Does anyone know how I can get emacs Dired not to display files with ~
> on the end, e.g. backup files in the C-f listing of a directory.
Dear David,
The `dired-x.el' file provides "extra" features for dired mode. Read
the info nodes `(dired-x)Installation' and `(dired-x)Omitting Files'
for more informations.
You need to load this elisp file (`M-x load-library RET dired-x RET').
To do load it at startup, add the following in emacs init file :
(add-hook 'dired-load-hook
(lambda ()
(load "dired-x")))
Then you toggle omitting of files with `dired-omit-toggle' bounded to
`M-o'.
To turn it on automagically for each dired buffer, add the following
to emacs init file :
(add-hook 'dired-mode-hook
(lambda ()
(setq dired-omit-files-p t)))
The default value of `dired-omit-extensions' contains the elements of
`completion-ignored-extensions', apriori it contains "~"...
--
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: dired listing (dont display ~ files)
2002-11-20 12:25 ` Matthias Meulien
@ 2002-11-20 16:14 ` David Holden
0 siblings, 0 replies; 4+ messages in thread
From: David Holden @ 2002-11-20 16:14 UTC (permalink / raw)
Cc: help-gnu-emacs
excellent, just what I needed.
Thanks a lot
Dave.
On Wed, 2002-11-20 at 12:25, Matthias Meulien wrote:
> David Holden <dh@iucr.org> wrote:
>
> > Does anyone know how I can get emacs Dired not to display files with ~
> > on the end, e.g. backup files in the C-f listing of a directory.
>
> Dear David,
>
> The `dired-x.el' file provides "extra" features for dired mode. Read
> the info nodes `(dired-x)Installation' and `(dired-x)Omitting Files'
> for more informations.
>
> You need to load this elisp file (`M-x load-library RET dired-x RET').
> To do load it at startup, add the following in emacs init file :
>
> (add-hook 'dired-load-hook
> (lambda ()
> (load "dired-x")))
>
> Then you toggle omitting of files with `dired-omit-toggle' bounded to
> `M-o'.
>
> To turn it on automagically for each dired buffer, add the following
> to emacs init file :
>
> (add-hook 'dired-mode-hook
> (lambda ()
> (setq dired-omit-files-p t)))
>
> The default value of `dired-omit-extensions' contains the elements of
> `completion-ignored-extensions', apriori it contains "~"...
--
Dr. David Holden. (Systems Developer)
check-out : crystallography journals online <http://journals.iucr.org>
Thanks in advance:-
Please avoid sending me Word or PowerPoint attachments.
See: <http://www.fsf.org/philosophy/no-word-attachments.html>
Personal Links:-
Recommended reading : http://www.oreilly.com/catalog/dbnationtp/
UK Privacy (R.I.P) : http://www.stand.org.uk/commentary.php3
Public GPG key available on request.
-- 99% of politicians give the rest a bad name --
-------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* dired listing (dont display ~ files)
@ 2002-11-20 11:16 David Holden
0 siblings, 0 replies; 4+ messages in thread
From: David Holden @ 2002-11-20 11:16 UTC (permalink / raw)
Hi,
Does anyone know how I can get emacs Dired not to display files with ~
on the end, e.g. backup files in the C-f listing of a directory.
Below is my .emacs file, I though the line
'(dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$|^.*~$")
would do it but it doesn't, any ideas,
thanks in advance,
Dave.
(setq viper-mode t)
(require 'viper)
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste
it!
;; Your init file should contain only one such instance.
'(column-number-mode t)
'(dired-omit-files "^\\.?#\\|^\\.$\\|^\\.\\.$|^.*~$")
'(dired-omit-files-p t)
'(frame-background-mode nil)
'(global-font-lock-mode t nil (font-lock))
'(mouse-wheel-mode t nil (mwheel))
'(scroll-bar-mode (quote right))
'(tooltip-mode t nil (tooltip))
'(x-select-enable-clipboard t))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(font-lock-builtin-face ((((class color) (background light))
(:foreground "steel blue" :weight bold))))
'(font-lock-comment-face ((((class color) (background light))
(:foreground "Firebrick" :slant italic))))
'(font-lock-function-name-face ((((class color) (background light))
(:foreground "brown" :weight extra-bold))))
'(font-lock-keyword-face ((((class color) (background light))
(:foreground "Purple" :weight bold))))
'(font-lock-string-face ((((class color) (background light))
(:foreground "LightSteelBlue4" :slant italic :weight bold))))
'(font-lock-variable-name-face ((((class color) (background light))
(:foreground "blue")))))
--
Dr. David Holden. (Systems Developer)
check-out : crystallography journals online <http://journals.iucr.org>
Thanks in advance:-
Please avoid sending me Word or PowerPoint attachments.
See: <http://www.fsf.org/philosophy/no-word-attachments.html>
Personal Links:-
Recommended reading : http://www.oreilly.com/catalog/dbnationtp/
UK Privacy (R.I.P) : http://www.stand.org.uk/commentary.php3
Public GPG key available on request.
-- 99% of politicians give the rest a bad name --
-------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2002-11-20 16:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.1037791078.30881.help-gnu-emacs@gnu.org>
2002-11-20 11:48 ` dired listing (dont display ~ files) Edric M Ellis
2002-11-20 12:25 ` Matthias Meulien
2002-11-20 16:14 ` David Holden
2002-11-20 11:16 David Holden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).