Browse Source

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.
custom
Zachary Wasserman 14 years ago
parent
commit
3fadc4733c
  1. 7
      prelude/prelude-ui.el

7
prelude/prelude-ui.el

@ -43,10 +43,9 @@
(defun prelude-frame-config (frame) (defun prelude-frame-config (frame)
"Custom behaviours for new frames." "Custom behaviours for new frames."
(if (eq system-type 'darwin) (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))) (menu-bar-mode -1)))
;; run now ;; run now

Loading…
Cancel
Save