Skip to content

Commit

Permalink
Allow frame maximisation to work on all Macs, and on external monitors
Browse files Browse the repository at this point in the history
  • Loading branch information
purcell committed Jul 24, 2012
1 parent 784a336 commit 212eb37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
9 changes: 3 additions & 6 deletions init-maxframe.el
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,12 @@
(fset 'maximize-frame 'x-maximize-frame)
(fset 'restore-frame 'x-restore-frame))))

(when *macbook-pro-support-enabled*
(setq mf-max-width 1440
mf-max-height 894
mf-display-padding-width 4
mf-offset-x 0
(when *is-a-mac*
(setq mf-display-padding-width 4
mf-display-padding-height (if (when (boundp 'ns-auto-hide-menu-bar)
ns-auto-hide-menu-bar)
23
(+ 22 23))))
(+ 27 23))))

(require 'init-utils) ; for with-selected-frame

Expand Down
1 change: 0 additions & 1 deletion init.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
;; Which functionality to enable (use t or nil for true and false)
;;----------------------------------------------------------------------------
(setq *spell-check-support-enabled* nil)
(setq *macbook-pro-support-enabled* t)
(setq *is-a-mac* (eq system-type 'darwin))
(setq *is-carbon-emacs* (and *is-a-mac* (eq window-system 'mac)))
(setq *is-cocoa-emacs* (and *is-a-mac* (eq window-system 'ns)))
Expand Down

0 comments on commit 212eb37

Please sign in to comment.