font-lock-add-keywor ds dired-mode exe font-lock-comment-fa ce pdf fon

1
2
3
4
5
6
7
8
(font-lock-add-keywords 'dired-mode
'(("^.+\\.exe$" . font-lock-comment-face)
("^.+\\.pdf$" . font-lock-keyword-face)
("^.+\\.h$" . font-lock-keyword-face)
("^.+\\.py$" . font-lock-builtin-face)
("^.+\\.el$" . font-lock-keyword-face)
("[^d]\\([-r][-w]x\\)" 1 font-lock-comment-face)
))