I have an issue with font locking ignored files in Dired. If I understand
correctly, the function diredfl-match-ignored-extensions takes the extensions
for ignored files from dired-omit-extensions and
completion-ignored-extensions. The former is set in dired-x to
completion-ignored-extensions, dired-latex-unclean-extensions,
dired-bibtex-unclean-extensions, and dired-texinfo-unclean-extensions.
I have a number of extra extensions that I add to these variables. (E.g.,
Beamer adds a lot of auxiliary files.) I modified both
completion-ignored-extensions and dired-latex-unclean-extensions.
Extensions that are added to the former are fontified correctly, but extensions
added to dired-latex-unclean-extensions and dired-bibtex-unclean-extensions
are not, even though C-h v shows these variables with my modifications. So I
suspect there is a problem with diredf not picking up the modified
dired-omit-extensions variable from dired-x; it fontifies according to the
default values of the variables.
I load both dired-x and diredfl with use-package, and for diredfl I have :after
(dired-x), but it makes no difference. How can I make sure that diredfl
fontifies file names according to the modified value of the
dired-omit-extensions variable?
As a typical LaTex/Beamer/BibTeX session creates lots of temporary files, it
would be useful if all these files got fontified with the
diredfl-ignored-file-name face. I find diredfl very useful in helping me find
the files I want quickly in a Dired buffer.
Reported by email:
I have an issue with font locking ignored files in Dired. If I understand correctly, the function
diredfl-match-ignored-extensions
takes the extensions for ignored files fromdired-omit-extensions
andcompletion-ignored-extensions
. The former is set indired-x
tocompletion-ignored-extensions
,dired-latex-unclean-extensions
,dired-bibtex-unclean-extensions
, anddired-texinfo-unclean-extensions
.I have a number of extra extensions that I add to these variables. (E.g., Beamer adds a lot of auxiliary files.) I modified both
completion-ignored-extensions
anddired-latex-unclean-extensions
. Extensions that are added to the former are fontified correctly, but extensions added todired-latex-unclean-extensions
anddired-bibtex-unclean-extensions
are not, even though C-h v shows these variables with my modifications. So I suspect there is a problem with diredf not picking up the modifieddired-omit-extensions
variable from dired-x; it fontifies according to the default values of the variables.I load both dired-x and diredfl with use-package, and for diredfl I have :after (dired-x), but it makes no difference. How can I make sure that diredfl fontifies file names according to the modified value of the
dired-omit-extensions
variable?As a typical LaTex/Beamer/BibTeX session creates lots of temporary files, it would be useful if all these files got fontified with the
diredfl-ignored-file-name
face. I find diredfl very useful in helping me find the files I want quickly in a Dired buffer.