fixed #15 - don't show the menu-bar in an OS X terminal frame
This commit is contained in:
parent
f6b89b9b18
commit
fb9310734c
1 changed files with 9 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue