purcell / diredfl

Extra Emacs font lock rules for a more colourful dired
135 stars 6 forks source link

Ignored extensions #11

Open purcell opened 3 years ago

purcell commented 3 years ago

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 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.

xeruf commented 3 years ago

I have the same issue but with diredfl-compressed-extensions :/

xeruf commented 3 years ago

Nevermind, seems to work