* Change Emacs window size
@ 2009-02-13 5:39 Alexander
2009-02-13 6:36 ` Drew Adams
[not found] ` <mailman.648.1234507018.31690.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Alexander @ 2009-02-13 5:39 UTC (permalink / raw)
To: help-gnu-emacs
Hello.
I would like to know, how to change emacs' frame (X11 window) size on
the fly.
I've discovered function x-send-client-message in emacs, which is used
to make emacs full screen, but all my tries to make emacs frame a little
smaller
or a little larger did not have any result.
I've tried to do so, but it does not work
*(defun toggle-fullscreen ()
(interactive)
(x-send-client-message nil 0 nil "_NET_MOVERESIZE_WINDOW" 32 '(100
100 40 40))
)*
Can anybody help me?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: Change Emacs window size
2009-02-13 5:39 Change Emacs window size Alexander
@ 2009-02-13 6:36 ` Drew Adams
[not found] ` <mailman.648.1234507018.31690.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2009-02-13 6:36 UTC (permalink / raw)
To: coopht, help-gnu-emacs
> From: Alexander Sent: Thursday, February 12, 2009 9:40 PM
> I would like to know, how to change emacs' frame (X11 window) size on
> the fly. Can anybody help me?
Yes. Here are two ways to resize frames incrementally:
* Commands `shrink-frame', `shrink-frame-horizontally', `enlarge-frame', and
`enlarge-frame-horizontally', in library frame-cmds.el. I bind these to `C-M-' +
arrow keys: `C-M-up', `C-M-left', `C-M-down', and `C-M-right', respectively. (I
bind the same keys, but without the `C-' prefix, to the frame movement commands
in the same library.)
http://www.emacswiki.org/emacs/frame-cmds.el
* Commands `doremi-frame-height' and `doremi-frame-width', in library
doremi-frm.el. After you invoke either of these, you can use the
up/down/left/right arrow keys, or the mouse wheel, to adjust the frame size.
Code: http://www.emacswiki.org/emacs/doremi-frm.el
Doc: http://www.emacswiki.org/emacs/DoReMi
For more info about this topic:
http://www.emacswiki.org/emacs/FrameSize
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.648.1234507018.31690.help-gnu-emacs@gnu.org>]
* Re: Change Emacs window size
[not found] ` <mailman.648.1234507018.31690.help-gnu-emacs@gnu.org>
@ 2009-02-13 15:35 ` Chetan
0 siblings, 0 replies; 4+ messages in thread
From: Chetan @ 2009-02-13 15:35 UTC (permalink / raw)
To: help-gnu-emacs
"Drew Adams" <drew.adams@oracle.com> writes:
>> From: Alexander Sent: Thursday, February 12, 2009 9:40 PM
>> I would like to know, how to change emacs' frame (X11 window) size on
>> the fly. Can anybody help me?
>
> Yes. Here are two ways to resize frames incrementally:
>
> * Commands `shrink-frame', `shrink-frame-horizontally', `enlarge-frame', and
> `enlarge-frame-horizontally', in library frame-cmds.el. I bind these to `C-M-' +
> arrow keys: `C-M-up', `C-M-left', `C-M-down', and `C-M-right', respectively. (I
> bind the same keys, but without the `C-' prefix, to the frame movement commands
> in the same library.)
>
> http://www.emacswiki.org/emacs/frame-cmds.el
>
>
> * Commands `doremi-frame-height' and `doremi-frame-width', in library
> doremi-frm.el. After you invoke either of these, you can use the
> up/down/left/right arrow keys, or the mouse wheel, to adjust the frame size.
>
> Code: http://www.emacswiki.org/emacs/doremi-frm.el
> Doc: http://www.emacswiki.org/emacs/DoReMi
>
>
> For more info about this topic:
> http://www.emacswiki.org/emacs/FrameSize
I did somthing similar earlier, since my mouse started playing dead
frequently. Instead of inventing new keybindings, I found it useful
to use the default keybindings for the commands. After that, it
is easier to make further adjustments by using the `repeat' command
which I have bound to a function key.
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.619.1234503546.31690.help-gnu-emacs@gnu.org>]
end of thread, other threads:[~2009-02-13 18:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 5:39 Change Emacs window size Alexander
2009-02-13 6:36 ` Drew Adams
[not found] ` <mailman.648.1234507018.31690.help-gnu-emacs@gnu.org>
2009-02-13 15:35 ` Chetan
[not found] <mailman.619.1234503546.31690.help-gnu-emacs@gnu.org>
2009-02-13 18:16 ` Pascal J. Bourguignon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).