How can I hide all major / minor modes from the mode line without a package?

431 Views Asked by At

After coming from Spacemacs where the performance was a bit slow, I'm rebuilding my config from scratch atm with a focus on performance and was wondering, how can I hide all major and minor modes from the modeline without installing additional packages?

For context, I can tell what major mode I'm in by the file name suffix or buffer name and there isn't much need to be reminded what minor modes are available since that gets built into muscle memory from daily usage of emacs.

2

There are 2 best solutions below

3
phils On
(setq-default mode-line-format (delq 'mode-line-modes mode-line-format))
0
Fred Schoen On

If you want to do that in spacemacs, you can add

(defun dotspacemacs/user-config ()

  (spaceline-toggle-minor-modes-off)

)

to your .spacemacs. Or call that function interactively SPC t m m