fixed #15 - don't show the menu-bar in an OS X terminal frame

This commit is contained in:
Bozhidar Batsov 2012-02-15 19:02:51 +02:00
parent f6b89b9b18
commit fb9310734c

View file

@ -40,8 +40,15 @@
(tool-bar-mode -1)) (tool-bar-mode -1))
;; the menu bar is mostly useless as well ;; the menu bar is mostly useless as well
;; but removing it under OS X doesn't make much sense ;; but removing it under OS X doesn't make much sense
(unless (eq system-type 'darwin) (defun prelude-frame-config (frame)
(menu-bar-mode -1)) "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 ;; the blinking cursor is nothing, but an annoyance
(blink-cursor-mode -1) (blink-cursor-mode -1)