Skip to content

Instantly share code, notes, and snippets.

@WA9ACE
Last active August 29, 2015 14:16
Show Gist options
  • Save WA9ACE/5790e4e97eb86ad710f6 to your computer and use it in GitHub Desktop.
Save WA9ACE/5790e4e97eb86ad710f6 to your computer and use it in GitHub Desktop.
Sublime Text 3 Plugin to always hide the menubar.
import sublime, sublime_plugin
class AlwaysHideMenubar(sublime_plugin.EventListener):
def hide(self, view):
is_menubar_visible = view.settings().get("menu_visible")
if is_menubar_visible is not False:
window.run_command("toggle_menu")
def on_new(self, view):
self.hide(view)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment