2

As far as I know, Dired and Dired+ work better by default (give better color contrast) on color themes with clear backgrounds. I know I can customize face colors on Dired+ for Emacs manually using M-x customize-face, but this can be tedious when customizing multiple faces one by one.

Given this, I was wondering if anybody knows of a code snippet that automatically customizes those faces that don't work well on dark themes such as Zenburn or Tango.

I am mostly interested on a solution for Dired+, but I wonder if a solution exists for Bookmarks+ too.

1 Answer 1

1

Make sure that the background-mode frame parameter of your frames is set correctly (to dark).

(add-to-list 'default-frame-alist '(background-mode . dark)) 

This may not be enough as some modes use additional faces whose default value doesn't depend on default-frame-alist. After you've done that, use list-faces-display to see what faces have poor contrast, and add lines like these to your .emacs:

(set-face-background 'something-face "SomeDarkColor") (set-face-foreground 'something-face "SomeLightColor") 
1
  • How can I apply my main color theme, monokai, to dired+ buffers? Commented Mar 28, 2013 at 19:46

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.