* Costumising the colours in Dired
@ 2005-01-27 12:21 Andreas Christiansen
2005-01-27 12:40 ` Matthias
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Andreas Christiansen @ 2005-01-27 12:21 UTC (permalink / raw)
Dired is kind enough to display the LaTeX files you don't want to keep
(.aux, .log, etc) in a different colour, while the .tex files are
displayed using the ordinary colour. That makes it easy to clean up all
unwanted files.
However, the .pdf files is displayed in the same colour as the files you
want to remove, while the .ps files are displayed using the ordinary
colour. I want to swap colour for these two types of files. How do I do
that?
After "clean up" I am only interested in keeping .tex and .pdf .
Andreas Christiansen
Dept. of Mathematics
Stord/Haugesund University College
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Costumising the colours in Dired
2005-01-27 12:21 Costumising the colours in Dired Andreas Christiansen
@ 2005-01-27 12:40 ` Matthias
2005-01-27 12:44 ` David Hansen
2005-01-31 17:07 ` Andreas Christiansen
2 siblings, 0 replies; 4+ messages in thread
From: Matthias @ 2005-01-27 12:40 UTC (permalink / raw)
Andreas Christiansen <andreas.christiansen@hsh.no> wrote:
> (...) I want to swap colour for these two types of files. How do I
> do that?
I think the color comes from the value of
`completion-ignored-extensions'. So you can try the following before
you create your dired buffer:
(setq completion-ignored-extensions
(remove ".pdf" (push ".ps" completion-ignored-extensions)))
> After "clean up" I am only interested in keeping .tex and .pdf .
See the following variables for automatic cleaning (needs the library
`dired-aux'): `dired-tex-unclean-extensions',
`dired-texinfo-unclean-extensions', `dired-latex-unclean-extensions',
`dired-bibtex-unclean-extensions'.
--
Matthias
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Costumising the colours in Dired
2005-01-27 12:21 Costumising the colours in Dired Andreas Christiansen
2005-01-27 12:40 ` Matthias
@ 2005-01-27 12:44 ` David Hansen
2005-01-31 17:07 ` Andreas Christiansen
2 siblings, 0 replies; 4+ messages in thread
From: David Hansen @ 2005-01-27 12:44 UTC (permalink / raw)
On Thu, 27 Jan 2005 13:21:40 +0100 Andreas Christiansen wrote:
> Dired is kind enough to display the LaTeX files you don't want to keep
> (.aux, .log, etc) in a different colour, while the .tex files are
> displayed using the ordinary colour. That makes it easy to clean up all
> unwanted files.
>
> However, the .pdf files is displayed in the same colour as the files you
> want to remove, while the .ps files are displayed using the ordinary
> colour. I want to swap colour for these two types of files. How do I do
> that?
(setq completion-ignored-extensions
(remove ".pdf" completion-ignored-extensions))
(add-to-list 'completion-ignored-extensions ".ps")
As you may have already guessed this has side effects when
completing file names.
David
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Costumising the colours in Dired
2005-01-27 12:21 Costumising the colours in Dired Andreas Christiansen
2005-01-27 12:40 ` Matthias
2005-01-27 12:44 ` David Hansen
@ 2005-01-31 17:07 ` Andreas Christiansen
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Christiansen @ 2005-01-31 17:07 UTC (permalink / raw)
Thank you, Matthias and David -- my problem is solved.
Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-01-31 17:07 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-27 12:21 Costumising the colours in Dired Andreas Christiansen
2005-01-27 12:40 ` Matthias
2005-01-27 12:44 ` David Hansen
2005-01-31 17:07 ` Andreas Christiansen
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.