help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make "C-x 4" command work better for widescreen monitor


From: Xah
Subject: Re: How to make "C-x 4" command work better for widescreen monitor
Date: Tue, 28 Oct 2008 15:37:14 -0700 (PDT)
User-agent: G2/1.0

On Oct 28, 11:59 am, Pony <lingyu.ma...@googlemail.com> wrote:
> When we run the command "C-x 4 f", which will open a new file in a new
> buffer under the current one,
> the Emacs will cut the whole window into two vertical ones, each takes
> 50% space of the screen.
>
> However at present more and more people begin to use widescreen tft
> monitor for programming,
> in my opinion it will be much better that, after we run "C-x 4"
> commands the Emacs cut the whole screen into two HORIZONTALL screens.
>
> Of course, people could open a new file first with "C-x 4 f" command,
> and close it, and run "C-x 3" command to cut the whole screen
> horizontally and show it in the second window. But it takes some
> operations, which will be happened frequently when programming.
>
> Is there a fast and direct way to make all the "C-x 4" commands
> default cut the window HORIZONTALLY, or not?
> Especially when you're compiling, make the compiling result show in
> the window right to the code window!!
>
> Hope for your answers.

I'm not sure there is a easy customization for this. I checked source
for find-file-other-window, which leads to switch-to-buffer-other-
window, which leads to display-buffer. I think it is with display-
buffer where you set how you want the windows split.

However, you could easily write a function that does what you want by
calling split-window-horizontally. (let us know if you really just
want this)

i actually never use find-file-other-window (Ctrl+x 4 f).
I find it easier just to split the win yourself then open any buffer
you want. This gives you much control and useful in many situations.
All you need is some fast shortcuts.

Basically, you want a fast key to split window, to split window, and
one to switch cursor among the window.

On the qwerty layout, i have them as:

Alt+2 ⇒ split window top/bottom
Alt+Shift+2 ⇒ split window side by side

Alt+1 ⇒ unsplit window
Alt+Shift+1 ⇒ unsplit by removing current pane

Alt+s ⇒ move cursor to other pane other-window

these will get you a long way.

if you like them, you can find the implementation and other setup
here:
http://xahlee.org/emacs/ergonomic_emacs_keybinding.html

  Xah
∑ http://xahlee.org/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]