Besides package-specific configuration, use-package can also help to organize general configuration by using (use-package emacs)
:
(use-package emacs :init ; Hide the top menu bar (menu-bar-mode -1))
Since (use-package emacs)
immediatly returns, the effect is the same as putting your configuration straight into the init file.1
Note, however, that this requires use-package to be loaded first, which could theoretically introduce a noticable delay when configuring things like hiding the menu bar. In cases like that, it might be faster for the configuration to be placed in the file without wrapping it into a
↩︎use-package
call on Emacs 28.2Emacs 29 comes with use-package built in and loaded on startup, so that should alleviate any such issues.
↩︎