I'm running Emacs 25.1 on macOS Sierra. After opening Emacs using the GUI and maximizing its frame, I execute (
C-x C-e) the following code:
(setq ns-auto-hide-menu-bar t) (set-frame-position nil 0 -24) (set-frame-size nil (display-pixel-width) (display-pixel-height) t)
This code moves the Emacs frame up so that the title bar is hidden, and then resizes the frame so that it fills the entire screen.
Problem: If I add the code above to my
init.el file and relaunch Emacs, the title bar is not hidden anymore. But if I open my
C-x C-e the mentioned code, then the title bar goes away.
Question: How can I make the code above work properly inside my
Thanks for helping!