help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

maximizing window for MacOSX


From: ishi soichi
Subject: maximizing window for MacOSX
Date: Fri, 3 Feb 2012 16:50:25 +0900

MacOSX Snow Leopard
Cocoa Emacs 23.2.1

I am trying to develop an Emacs Lisp program that maximizes the window.
I found and modified the following code, which was originally for Carbon Emacs.

(when (eq window-system 'ns)
  (add-hook 'window-setup-hook
            (lambda ()
              (set-frame-parameter nil 'fullscreen 'fullboth)
              )))

(defun mac-toggle-max-window ()
  (interactive)
  (if (frame-parameter nil 'fullscreen)
      (set-frame-parameter nil 'fullscreen nil)
    (set-frame-parameter nil 'fullscreen 'fullboth)))

It does not act as I want it to.
window-system for MacOSX is "ns" I believe. 

Could anyone see why it does not work?

Thanks in advance.

soichi

reply via email to

[Prev in Thread] Current Thread [Next in Thread]