Windows 10, Emacs 26.1, Dired+ (download from here https://www.emacswiki.org/emacs/download/dired%2b.el)

Open some directory:

Here result:

enter image description here

Why some text is strikethrough?

2 Answers 2


They are displayed in the diredp-omit-file-name face defined in the very same file:

(defface diredp-omit-file-name
  (if (assq :inherit custom-face-attributes) ; Emacs 22+
      '((((background dark)) (:inherit diredp-ignored-file-name :strike-through "#555555555555")) ; ~ dark gray
        (t                   (:inherit diredp-ignored-file-name :strike-through "#AAAAAAAAAAAA"))) ; ~ light gray
    '((((background dark)) (:foreground "#C29D6F156F15")) ; ~ salmon
      (t                   (:foreground "#00006DE06DE0")))) ; ~ dark cyan
  "*Face used for files whose names will be omitted in `dired-omit-mode'.
This means file names that match regexp `diredp-omit-files-regexp'.
\(File names matching `dired-omit-extensions' are highlighted with face
`diredp-ignored-file-name' instead.)"

If you don't like the current appearance of the face, you can customize it using customize-face.

  • 1
    Maybe mention that users can change the face appearance using M-x customize-face RET diredp-omit-file-name RET.
    – Drew
    Oct 15, 2019 at 14:41

Just remove the strike-throughs in lines 3839-3842 of dired+.el, to give

(defface diredp-omit-file-name ;;
 (if (assq :inherit custom-face-attributes) ; Emacs 22+
  '((((background dark)) (:inherit diredp-ignored-file-name))
    (t                   (:inherit diredp-ignored-file-name)))

Either rename the file or make a note of the change so you're not caught out in an update.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.