From fb9310734c823982b39ebeea9e205355d5e00feb Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Wed, 15 Feb 2012 19:02:51 +0200 Subject: [PATCH] fixed #15 - don't show the menu-bar in an OS X terminal frame --- modules/prelude-ui.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/prelude-ui.el b/modules/prelude-ui.el index 471ed75..c0edc50 100644 --- a/modules/prelude-ui.el +++ b/modules/prelude-ui.el @@ -40,8 +40,15 @@ (tool-bar-mode -1)) ;; the menu bar is mostly useless as well ;; but removing it under OS X doesn't make much sense -(unless (eq system-type 'darwin) - (menu-bar-mode -1)) +(defun prelude-frame-config (frame) + "Custom behaviours for new frames." + (unless (and (display-graphic-p) (eq system-type 'darwin)) + (menu-bar-mode -1))) +;; run now +(prelude-frame-config (selected-frame)) +;; and later +(add-hook 'after-make-frame-functions 'prelude-frame-config) + ;; the blinking cursor is nothing, but an annoyance (blink-cursor-mode -1)