all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Changine sizes of splitted windows
@ 2006-10-21 17:27 Texaner
  2006-10-21 17:47 ` Markus Triska
  0 siblings, 1 reply; 10+ messages in thread
From: Texaner @ 2006-10-21 17:27 UTC (permalink / raw)


Hello,

I am quiet new to emacs. I'm using a splitted window (ctrl + x + 2) for
programming purposes. Is there a possibility to change the sizes of the
windows, I mean moving the middle line that splits the window, only by
keyboard instead of using a mouse?

I tried to look it up in the manual but I was not succesful.

Thank you very much in advance for your answers.

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

* Re: Changine sizes of splitted windows
  2006-10-21 17:27 Changine sizes of splitted windows Texaner
@ 2006-10-21 17:47 ` Markus Triska
  2006-10-21 19:51   ` Texaner
  0 siblings, 1 reply; 10+ messages in thread
From: Markus Triska @ 2006-10-21 17:47 UTC (permalink / raw)


"Texaner" <texaner82@web.de> writes:

> programming purposes. Is there a possibility to change the sizes of the
> windows, I mean moving the middle line that splits the window, only by
> keyboard instead of using a mouse?

,----
| C-x ^ runs the command enlarge-window
|    which is an interactive built-in function in `C source code'.
| It is bound to C-x ^.
| (enlarge-window ARG &optional HORIZONTAL)
| 
| Make current window ARG lines bigger.
| From program, optional second arg non-nil means grow sideways ARG columns.
| Interactively, if an argument is not given, make the window one line bigger.
| If HORIZONTAL is non-nil, enlarge horizontally instead of vertically.
| This function can delete windows, even the second window, if they get
| too small.
`----

Best wishes!
Markus Triska

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

* Re: Changine sizes of splitted windows
  2006-10-21 17:47 ` Markus Triska
@ 2006-10-21 19:51   ` Texaner
  2006-10-21 20:45     ` Alexis Roda
  2006-10-21 21:07     ` B. T. Raven
  0 siblings, 2 replies; 10+ messages in thread
From: Texaner @ 2006-10-21 19:51 UTC (permalink / raw)


Thank you very much for your answer. C-x ^ seems not to work. I'm not
sure why. Perhaps because I use Aquamacs (emacs adjusted to
mac-environment).

But enlarge-window works. Is there also a possibility to make the
window smaller again after enlarging it (preferable with a shortcut)?

Thanks

Marcel

Markus Triska wrote:
> "Texaner" <texaner82@web.de> writes:
>
> > programming purposes. Is there a possibility to change the sizes of the
> > windows, I mean moving the middle line that splits the window, only by
> > keyboard instead of using a mouse?
>
> ,----
> | C-x ^ runs the command enlarge-window
> |    which is an interactive built-in function in `C source code'.
> | It is bound to C-x ^.
> | (enlarge-window ARG &optional HORIZONTAL)
> |
> | Make current window ARG lines bigger.
> | From program, optional second arg non-nil means grow sideways ARG columns.
> | Interactively, if an argument is not given, make the window one line bigger.
> | If HORIZONTAL is non-nil, enlarge horizontally instead of vertically.
> | This function can delete windows, even the second window, if they get
> | too small.
> `----
> 
> Best wishes!
> Markus Triska

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

* Re: Changine sizes of splitted windows
  2006-10-21 19:51   ` Texaner
@ 2006-10-21 20:45     ` Alexis Roda
  2006-10-21 21:07     ` B. T. Raven
  1 sibling, 0 replies; 10+ messages in thread
From: Alexis Roda @ 2006-10-21 20:45 UTC (permalink / raw)


En/na Texaner ha escrit:
> Thank you very much for your answer. C-x ^ seems not to work. I'm not
> sure why. Perhaps because I use Aquamacs (emacs adjusted to
> mac-environment).
> 
> But enlarge-window works. Is there also a possibility to make the
> window smaller again after enlarging it (preferable with a shortcut)?
> 

C-u <number> M-x enlarge-window

positive numbers will grow the window, while negative ones will shrink it


HTH

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

* Re: Changine sizes of splitted windows
  2006-10-21 19:51   ` Texaner
  2006-10-21 20:45     ` Alexis Roda
@ 2006-10-21 21:07     ` B. T. Raven
  2006-10-22 16:26       ` Texaner
  1 sibling, 1 reply; 10+ messages in thread
From: B. T. Raven @ 2006-10-21 21:07 UTC (permalink / raw)



"Texaner" <texaner82@web.de> wrote in message
news:1161460263.118063.317010@k70g2000cwa.googlegroups.com...
> Thank you very much for your answer. C-x ^ seems not to work. I'm not
> sure why. Perhaps because I use Aquamacs (emacs adjusted to
> mac-environment).
>
> But enlarge-window works. Is there also a possibility to make the
> window smaller again after enlarging it (preferable with a shortcut)?
>
> Thanks
>
> Marcel


Type "C-h w enlarge-window" to see if the command is bound to a key. What
does C-h k C-x ^ report? C-x + balances windows (if 2 makes both same
size). C-u -n C-x ^ enlarges the current window negatively (i.e. it
reduces it by n lines). Or to reduce current window, go to another and
enlarge that one.


>
> Markus Triska wrote:
> > "Texaner" <texaner82@web.de> writes:
> >
> > > programming purposes. Is there a possibility to change the sizes of
the
> > > windows, I mean moving the middle line that splits the window, only
by
> > > keyboard instead of using a mouse?
> >
> > ,----
> > | C-x ^ runs the command enlarge-window
> > |    which is an interactive built-in function in `C source code'.
> > | It is bound to C-x ^.
> > | (enlarge-window ARG &optional HORIZONTAL)
> > |
> > | Make current window ARG lines bigger.
> > | From program, optional second arg non-nil means grow sideways ARG
columns.
> > | Interactively, if an argument is not given, make the window one line
bigger.
> > | If HORIZONTAL is non-nil, enlarge horizontally instead of
vertically.
> > | This function can delete windows, even the second window, if they
get
> > | too small.
> > `----
> >
> > Best wishes!
> > Markus Triska
>

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

* Re: Changine sizes of splitted windows
  2006-10-21 21:07     ` B. T. Raven
@ 2006-10-22 16:26       ` Texaner
  2006-10-22 17:14         ` Colin S. Miller
                           ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Texaner @ 2006-10-22 16:26 UTC (permalink / raw)


Hello,

thanks for your answer. With the help of your suggestions I experienced
that C-x ^ is indeed bound to enlarge-window in my Aquamacs-version!

But when I type C-x the editor switches, as expected, to the command
line. But after typing ^ it switches to the last regular editor window
and shows "^" in the editor. I am a little bit confused about that. I
type the key that shows the symbols ^ and ° (with shift) and is next
to the number 1 (on a regular Mac-keyboard). Isn't it the right key?

Thanks in advance

Marcel

But at the
B. T. Raven wrote:
> "Texaner" <texaner82@web.de> wrote in message
> news:1161460263.118063.317010@k70g2000cwa.googlegroups.com...
> > Thank you very much for your answer. C-x ^ seems not to work. I'm not
> > sure why. Perhaps because I use Aquamacs (emacs adjusted to
> > mac-environment).
> >
> > But enlarge-window works. Is there also a possibility to make the
> > window smaller again after enlarging it (preferable with a shortcut)?
> >
> > Thanks
> >
> > Marcel
>
>
> Type "C-h w enlarge-window" to see if the command is bound to a key. What
> does C-h k C-x ^ report? C-x + balances windows (if 2 makes both same
> size). C-u -n C-x ^ enlarges the current window negatively (i.e. it
> reduces it by n lines). Or to reduce current window, go to another and
> enlarge that one.
>
>
> >
> > Markus Triska wrote:
> > > "Texaner" <texaner82@web.de> writes:
> > >
> > > > programming purposes. Is there a possibility to change the sizes of
> the
> > > > windows, I mean moving the middle line that splits the window, only
> by
> > > > keyboard instead of using a mouse?
> > >
> > > ,----
> > > | C-x ^ runs the command enlarge-window
> > > |    which is an interactive built-in function in `C source code'.
> > > | It is bound to C-x ^.
> > > | (enlarge-window ARG &optional HORIZONTAL)
> > > |
> > > | Make current window ARG lines bigger.
> > > | From program, optional second arg non-nil means grow sideways ARG
> columns.
> > > | Interactively, if an argument is not given, make the window one line
> bigger.
> > > | If HORIZONTAL is non-nil, enlarge horizontally instead of
> vertically.
> > > | This function can delete windows, even the second window, if they
> get
> > > | too small.
> > > `----
> > >
> > > Best wishes!
> > > Markus Triska
> >

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

* Re: Changine sizes of splitted windows
  2006-10-22 16:26       ` Texaner
@ 2006-10-22 17:14         ` Colin S. Miller
  2006-10-22 18:10         ` Peter Dyballa
  2006-10-23 13:30         ` david.reitter
  2 siblings, 0 replies; 10+ messages in thread
From: Colin S. Miller @ 2006-10-22 17:14 UTC (permalink / raw)


Texaner wrote:
> Hello,
> 
> thanks for your answer. With the help of your suggestions I experienced
> that C-x ^ is indeed bound to enlarge-window in my Aquamacs-version!
> 
> But when I type C-x the editor switches, as expected, to the command
> line. But after typing ^ it switches to the last regular editor window
> and shows "^" in the editor. I am a little bit confused about that. I
> type the key that shows the symbols ^ and ° (with shift) and is next
> to the number 1 (on a regular Mac-keyboard). Isn't it the right key?
> 
> Thanks in advance
> 
> Marcel
> 
Marcel,

That would depend on your keyboard layout.

For US and UK keyboards, it is shift-6.

Assuming you are using a German keyboard
(your webbrowser is reporting that it is configured to use German),
the key you want is to the left of '1', according to xfontsel.


What do you mean by "But when I type C-x the editor switches, as expected, to the command
line." ?

On Linux (and Windows), emacs displays C-x on the status line, when I press C-x.

Is C-x a Mac short cut to swap application windows?

M-x allows you to run arbitrary emacs commands.

HTH,
Colin S. Miller.

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

* Re: Changine sizes of splitted windows
  2006-10-22 16:26       ` Texaner
  2006-10-22 17:14         ` Colin S. Miller
@ 2006-10-22 18:10         ` Peter Dyballa
  2006-10-23 13:30         ` david.reitter
  2 siblings, 0 replies; 10+ messages in thread
From: Peter Dyballa @ 2006-10-22 18:10 UTC (permalink / raw)
  Cc: help-gnu-emacs


Am 22.10.2006 um 18:26 schrieb Texaner:

> But when I type C-x the editor switches, as expected, to the command
> line. But after typing ^ it switches to the last regular editor window
> and shows "^" in the editor.

Aquamacs Emacs seems to cheat. *You* have to remember that ^ is a  
dead-key, i.e. you have to press SPC afterwards. In an effort to  
remind you of finishing your input that dead-key *seems* to be  
inserted into the buffer where you started to type C-x ^, while the  
cursor is taken into mini-buffer.

Can you check what happens when you finish input?


BTW, there is a specialised list for Carbon and other Emacsen on Mac  
OS X:

	---------------------------- Info -----------------------------
	List Post: <mailto:macosx-emacs@email.esm.psu.edu>
	List Archives: <http://dir.gmane.org/gmane.emacs.macintosh.osx>

--
Mit friedvollen Grüßen

   Pete

Gut durch ist besser als unten durch!

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

* Re: Changine sizes of splitted windows
  2006-10-22 16:26       ` Texaner
  2006-10-22 17:14         ` Colin S. Miller
  2006-10-22 18:10         ` Peter Dyballa
@ 2006-10-23 13:30         ` david.reitter
  2006-10-24 18:18           ` Texaner
  2 siblings, 1 reply; 10+ messages in thread
From: david.reitter @ 2006-10-23 13:30 UTC (permalink / raw)



> But when I type C-x the editor switches, as expected, to the command
> line.

What? You mean, you're getting a minibuffer? That shouldn't happen.
That happens when you type M-x, which is Option-X in Aquamacs (by
default - unless you configure things differently).

You should try this without any of your configuration (.emacs,
customizations.el and Preferences.el in the appropriate places as
described in the Aquamacs FAQ).

>But after typing ^ it switches to the last regular editor window
> and shows "^" in the editor. I am a little bit confused about that. I
> type the key that shows the symbols ^ and ° (with shift) and is next
> to the number 1 (on a regular Mac-keyboard). Isn't it the right key?

Well, you may be surprised, but they're selling different keyboards in
different countries.
Your Nick "Texaner" suggests to me that you might be German, and indeed
^ is found on that key in the German keyboard layout. However, it is a
dead key, i.e. it is meant to be used in conjunction with another key.
If you input ^ in a normal buffer, you can see that it underlines the
caret, waiting for another key. Try ^e.

So you have to press C-x ^ SPACE to get what you want. And that works
fine for me in Aquamacs.

Hope that helps.

--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and
support the Aquamacs Project!

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

* Re: Changine sizes of splitted windows
  2006-10-23 13:30         ` david.reitter
@ 2006-10-24 18:18           ` Texaner
  0 siblings, 0 replies; 10+ messages in thread
From: Texaner @ 2006-10-24 18:18 UTC (permalink / raw)


Hello,

C-x ^ SPACE works. Thank you very much for your help.

david.reitter@gmail.com wrote:
> > But when I type C-x the editor switches, as expected, to the command
> > line.
>
> What? You mean, you're getting a minibuffer? That shouldn't happen.
> That happens when you type M-x, which is Option-X in Aquamacs (by
> default - unless you configure things differently).
>
> You should try this without any of your configuration (.emacs,
> customizations.el and Preferences.el in the appropriate places as
> described in the Aquamacs FAQ).
>
> >But after typing ^ it switches to the last regular editor window
> > and shows "^" in the editor. I am a little bit confused about that. I
> > type the key that shows the symbols ^ and ° (with shift) and is next
> > to the number 1 (on a regular Mac-keyboard). Isn't it the right key?
>
> Well, you may be surprised, but they're selling different keyboards in
> different countries.
> Your Nick "Texaner" suggests to me that you might be German, and indeed
> ^ is found on that key in the German keyboard layout. However, it is a
> dead key, i.e. it is meant to be used in conjunction with another key.
> If you input ^ in a normal buffer, you can see that it underlines the
> caret, waiting for another key. Try ^e.
>
> So you have to press C-x ^ SPACE to get what you want. And that works
> fine for me in Aquamacs.
>
> Hope that helps.
>
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and
> support the Aquamacs Project!

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

end of thread, other threads:[~2006-10-24 18:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-21 17:27 Changine sizes of splitted windows Texaner
2006-10-21 17:47 ` Markus Triska
2006-10-21 19:51   ` Texaner
2006-10-21 20:45     ` Alexis Roda
2006-10-21 21:07     ` B. T. Raven
2006-10-22 16:26       ` Texaner
2006-10-22 17:14         ` Colin S. Miller
2006-10-22 18:10         ` Peter Dyballa
2006-10-23 13:30         ` david.reitter
2006-10-24 18:18           ` Texaner

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.