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

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.



Solution 1:[1]

(setq-default mode-line-format (delq 'mode-line-modes mode-line-format))

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 phils