문제

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

다른 팁

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 !

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top