Because I use path-headerline-mode and small screen laptop, the filename on menubar (or menuline, at the bottom of the window) is not needed for my setup. How can I hide it?


  • maybe this fits better on Emacs
    – phuclv
    Feb 1, 2019 at 2:17

1 Answer 1


Put this in your init file:

(setq-default mode-line-format (remove 'mode-line-buffer-identification mode-line-format))

It is the presence of mode-line-buffer-identification in mode-line-format that causes the mode line to show the buffer name.

See the Elisp manual, node Mode Line Variables for more information.

  • Thx! And I did same on spacemacs via "spaceline-toggle-buffer-id-off".
    – yokoiwa
    Mar 10, 2019 at 10:17

Your Answer

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

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