Search code examples
macosemacsfullscreen

in GNU Emacs OSX, how to hide title bar?


In GNU Emacs on OSX Mavericks, how can I hide the title bar even when I'm not in Mavericks full-screen mode? I'd rather have my Emacs fill the entire frame.

title bar


Solution

  • You can set the variable ns-auto-hide-menu-barto a non-nil value to hide the menu bar.

    Also, you can position the window title above the top of the screen, if you do it programmatically. (OS X doesn't allow you to drag the frame above the top of the screen, though.)

    For example: The following will position the editable area at the top of the display.

    (setq ns-auto-hide-menu-bar t)
    (set-frame-position nil 0 -24)
    (tool-bar-mode 0)
    (set-frame-size nil 150 80)     ;; Pick values matching your screen.
    

    Note: This might require Emacs 24.4 (which is still in pretest).

    Alternatively, you could use the package Multicolumn to position and resize the frame (it's not OS X specific, but it's aware of features like auto-hiding the menu bar.)