What happened?
For more context, see this GitHub issue. When installing emacs-mac
via Homebrew with --with-natural-title-bar
on macOS Sonoma, there is a very large title bar. I think this is because of the size of the tool bar icons, as you can see in the linked GitHub issue.
If you start Emacs like /Applications/Emacs.app/Contents/MacOS/Emacs -q --eval '(tool-bar-mode 0)'
, then the title bar ends up being a reasonable size.
However, with Doom Emacs, simply putting (tool-bar-mode 0)
in config.el
doesn’t fix the issue because it seems like Doom is lazy loading tool bar configuration, as far as I can tell. But if I explicitly toggle tool-bar-mode
off after Doom has started up, then the title bar shrinks to a more reasonable size.
What did you expect to happen?
I expected setting (tool-bar-mode 0)
in config.el
to shrink the title bar to a more reasonable size at Emacs startup time. How can I have the title bar be a reasonable size at Emacs startup time without having to explicitly toggle tool-bar-mode
off after Emacs has started?
Steps to reproduce
brew install emacs-mac --with-natural-title-bar
-
/Applications/Emacs.app/Contents/MacOS/Emacs -q
to get large title bar -
/Applications/Emacs.app/Contents/MacOS/Emacs -q --eval '(tool-bar-mode 0)'
to get small/reasonable title bar -
/Applications/Emacs.app/Contents/MacOS/Emacs
to get large title bar with Doom configuration (regardless of whetherconfig.el
contains(tool-bar-mode 0)
)
System information
Loading data dump...