Browse Source

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

custom
Bozhidar Batsov 14 years ago
parent
commit
fb9310734c
  1. 11
      modules/prelude-ui.el

11
modules/prelude-ui.el

@ -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)
(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 ;; the blinking cursor is nothing, but an annoyance
(blink-cursor-mode -1) (blink-cursor-mode -1)

Loading…
Cancel
Save