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.
How to color c h and s files in dired mode?
660 Views Asked by SFbay007 At
2
There are 2 best solutions below
0

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 !
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!):
diredful
(by puttingdiredful.el
somewhere in your load-path)(require 'diredful)
to your init file.diredful-add
c-Files
)pattern
add the file name pattern to be matched, e.g.c h
face to use
select the face features you want to use