Frage

I would like to color source header and assembly files in the dired mode and differently. Basically, when viewing the folder contents I want to color the files differently. I also would like a way to color files that have a specific word in them differently.

War es hilfreich?

Lösung

How about using diredful?

Follow the link to find a description of how to setup diredful and add colourisation for a file type of your choosing.


How to do it (You should read the wiki article... it even has screenshots!):

  • Install diredful (by putting diredful.el somewhere in your load-path)
  • add (require 'diredful) to your init file.
  • Call diredful-add
  • Enter name you want to give this matching pattern (e.g. c-Files)
  • In the field pattern add the file name pattern to be matched, e.g. c h
  • Under face to use select the face features you want to use

Andere Tipps

With Dired+, your file names and files extensions will use different colours.

http://wikemacs.org/index.php/Dired+

http://www.emacswiki.org/emacs/DiredPlus

And to colour files that have a specific word in their names, I don't know, but you could use Dired with wildcards:

  C-x d path/to/all/containing/*foo*

will open a Dired buffer with all files containing foo in their names. Hope it helps !

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top