I often see the face dired-face-executable in people's
.emacs files, but it isn't used in the latest
dired sources. So I added the following hook to colorize the filename for executable files:
(defface ric-dired-executable '((t (:foreground "PaleGreen"))) "Exe files in dired.")
(defvar ric-dired-face-executable 'ric-dired-executable)
(add-hook
'dired-mode-hook
'(lambda ()
(add-to-list 'dired-font-lock-keywords
(list dired-re-exe
'(".+" (dired-move-to-filename) nil (0 ric-dired-face-executable))))))
No comments:
Post a Comment