[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] Maximize emacs on XP
From: |
Joe Casadonte |
Subject: |
Re: [h-e-w] Maximize emacs on XP |
Date: |
Tue, 03 Jun 2008 21:39:10 -0400 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) |
On Tue, 8 Apr 2008, Nkuvu the Wonder Tortoise wrote:
> I am attempting to set up emacs on a new Windows XP
> installation. I downloaded a few of the latest
> versions of emacs, but they're all exhibiting the same
> behavior -- notably, the maximize is not...
> maximizing. To be specific, when I just have
> "(w32-send-sys-command 61488)" in my .emacs file, the
> frame jumps around a bit.
I have this in my .emacs, and it works for me under XP (I'm using
Emacs 21.3, if that matters):
;;;; ------------------------------------------------------------------------
;;;; --- Frame max toggle - From: "rgb" <address@hidden> / gnu.emacs.help / 18
Mar 2005 16:30:32 -0800
;;;; ------------------------------------------------------------------------
(make-variable-frame-local 'my-frame-state)
(defun my-frame-maximize ()
"Maximize Emacs window in win32"
(interactive)
(modify-frame-parameters nil '((my-frame-state . t)))
(w32-send-sys-command ?\xf030))
(defun my-frame-restore ()
"Restore Emacs window in win32"
(interactive)
(modify-frame-parameters nil '((my-frame-state . nil)))
(w32-send-sys-command ?\xF120))
(defun my-frame-toggle ()
"Maximize/Restore Emacs frame based on `my-frame-state'"
(interactive)
(if my-frame-state
(my-frame-restore)
(my-frame-maximize)))
--
Regards,
joe
Joe Casadonte
address@hidden
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [h-e-w] Maximize emacs on XP,
Joe Casadonte <=