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