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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .