Here are two examples of what I mean:

  1. The lines are rendered in a different color as the background, so they are clearly seen:

  2. The lines are rendered in the same color as the background, so they can not be seen:

So, I would like to know how to tweak that, probably setting a face attribute.
Whether to render it clearly or hide it.

  • See the :box attribute: gnu.org/software/emacs/manual/html_node/elisp/… M-x customize-face for both mode-line and mode-line-inactive [The question is likely a duplicate of something from somewhere, but I don't have time to search/Google right now ...]
    – lawlist
    Jan 13, 2021 at 21:09
  • Thanks @lawlist. Wrote the answer, just in case.
    – nephewtom
    Jan 14, 2021 at 14:34

1 Answer 1


Following @lawlist advise, using :box attribute for mode-line-inactive made it.

The mode lines images shown in the question are from inactive frames.
The second image shows an inactive frame with a mode line that does not render the straight lines.


(set-face-attribute 'mode-line-inactive nil :box t)

renders the straight line with foreground color:

enter image description here

as it is indicated in Face Attributes section of Emacs Lisp manual.

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.