From 15f373cf9b1f0e99a674f015c89cb587780fde07 Mon Sep 17 00:00:00 2001 From: Bernd Haug Date: Sat, 10 Oct 2015 23:07:54 +0200 Subject: [PATCH] Make disabling the menu bar platform dependent. When disabling the menu bar, on OS X there's still the (single) menu bar, but it will only have the default entries, not the ones installed by each major mode. Only disable the menu bar when not on 'darwin. --- customizations/ui.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/customizations/ui.el b/customizations/ui.el index 8a8ed9996..55709263e 100644 --- a/customizations/ui.el +++ b/customizations/ui.el @@ -4,8 +4,10 @@ ;; a matter of preference and may require some fiddling to match your ;; preferences -;; Turn off the menu bar at the top of each frame because it's distracting -(menu-bar-mode -1) +;; Turn off the menu bar at the top of each frame because it's distracting, +;; unless it's on Mac where the single menu bar is always present but with +;; -1 will not include the mode-specific menu entries. +(if (not (eq system-type 'darwin)) (menu-bar-mode -1)) ;; Show line numbers (global-linum-mode)