Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Oftentimes it is desirable to let two windows each consume exactly half of the screen. I want to do this with emacs and the terminal so that I can look up C documentation while coding.

How could I make my system such that when emacs is opened from terminal, then the terminal and emacs will reposition themselves appropriately to the two halves of my screen? Or is there a better solution for my intended purpose?

share|improve this question
add comment

3 Answers 3

The keyboard shortcuts ctrl-alt and numpad numbers will position windows.

ctrl-alt-4 and ctrl-alt-6 will cover the left and right half of the screen, respectively.

share|improve this answer
add comment

I don't know wether there is a keyboard shortcut for that, but as an alternative you could use a tiling window manager like awesome, wmii or the likes. However this may be overkill if you would just like to position these two windows correctly. Although if you would like to have the tiling behaviour deeply embedded into your window manager those are two choices I would go after.

share|improve this answer
add comment

To add to Adrian's keyboard shortcut answer, the mouse can also be used to achieve the same effect by dragging a window to the left or right hand edge of the screen and it will grow to use one-half of the screen.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.