I've some minor mode that I want to hide so that it wouldn't clutter my mode line in my emacs config. But the problem is, even after I put the (diminish 'minor-mode) lines in my .emacs file, the minor modes aren't hidden in mode line. I've to manually evaluate the diminish-mode lines everytime I restart an emacs session.

What am I doing wrong ? Is there anyway I can fix this behaviour?

1 Answer 1


At a guess, you're probably trying to diminish a mode before it's been loaded?

Refer to the Emacs Wiki for an example of using diminish correctly with eval-after-load. If you want to address lots of modes, delight's more compact syntax may appeal.

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.