all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* 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

* 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

* Re: Change Emacs window size
       [not found] <mailman.619.1234503546.31690.help-gnu-emacs@gnu.org>
@ 2009-02-13 18:16 ` Pascal J. Bourguignon
  0 siblings, 0 replies; 4+ messages in thread
From: Pascal J. Bourguignon @ 2009-02-13 18:16 UTC (permalink / raw
  To: help-gnu-emacs

Alexander <coopht@gmail.com> writes:

> 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?

Have a look at http://darcs.informatimago.com/public/emacs/pjb-emacs.el
function full-frame

You can use set-frame-position set-frame-height and set-frame-width.

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 4+ messages in thread

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

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.