Fixing Issue 163: invalid function with-selected-frame

The function isn't loaded when Prelude tries to start up, resulting in
an error. I believe the intended effect can be achieved without its
use, and this change modifies the prelude-frame-config function in
accordance with this.
This commit is contained in:
Zachary Wasserman 2012-06-05 12:18:14 -07:00
parent e30cb93db4
commit 3fadc4733c

View file

@ -43,10 +43,9 @@
(defun prelude-frame-config (frame)
"Custom behaviours for new frames."
(if (eq system-type 'darwin)
(with-selected-frame frame
(if (display-graphic-p)
(modify-frame-parameters frame '((menu-bar-lines . 1)))
(modify-frame-parameters frame '((menu-bar-lines . 0)))))
(if (display-graphic-p)
(modify-frame-parameters frame '((menu-bar-lines . 1)))
(modify-frame-parameters frame '((menu-bar-lines . 0))))
(menu-bar-mode -1)))
;; run now