unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah Lee <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: moving around multiple buffers
Date: Fri, 21 Aug 2009 00:12:37 -0700 (PDT)	[thread overview]
Message-ID: <ca649a06-9cb4-485e-95f1-787b0bac472d@u16g2000pru.googlegroups.com> (raw)
In-Reply-To: 87d46p90me.fsf@es.aau.dk

On Aug 20, 10:50 pm, Torben Knudsen <t...@es.aau.dk> wrote:
> Xah Lee <xah...@gmail.com> writes:
> > On Aug 20, 1:58 am, Tamas K Papp <tkp...@gmail.com> wrote:
> >> Hi,
>
> >> I have seen screenshots of Emacs running with many buffers.  For
> >> example, having Emacs on the whole screen and splitting the buffers
> >> like this:
>
> >> A|B
> >> -+-
> >> C|D
>
> >> I know how to do the splitting, but I am curious about what people use
> >> to move around.  Using C-x o (other-window) is a pain with many
> >> windows, same applies to selecting buffers by name (at least for me),
> >> and I want to avoid using the mouse for this.  I am thinking of
> >> something like "move to buffer B, regardless of what is there".
>
> >> I am interested in how other people handle these setups.  .emacs
> >> snippets are welcome, too.  Also, feel free to tell me if I am
> >> trying to do something silly that does not mesh well with Emacs.
>
> > I reassign it so the key is right on the home row and using thumb
> > instead of pinky.
>
> > after a year or two, this eventually became a system of keybinding.
> >http://code.google.com/p/ergoemacs/
>
> > then, later i added a shifted version to go into the other direction.
>
> > typically, this works well for 2 or 3 split panes. But for 4 or more,
> > mouse is probably best.
> > I almost don't use more than 2 split planes. If needed, i open another
> > window (emacs frame), then there's another easy shortcut to cycle
> > among windows.
>
> > you might as well define another easy key to easily split and unsplit
> > the panes.
>
> > Here's snippet of code, assuming you use dvorak keyboard:
>
> > (global-set-key (kbd "M-o") 'move-cursor-next-pane)
> > (global-set-key (kbd "M-O") 'move-cursor-previous-pane)
>
> > (global-set-key (kbd "M-2") 'split-window-vertically)
> > (global-set-key (kbd "M-@") 'split-window-horizontally)
>
> > (global-set-key (kbd "M-1") 'delete-other-windows)
> > (global-set-key (kbd "M-!") 'delete-window)
>
> >   Xah
> > ∑http://xahlee.org/
>
> > ☄
>
> I use something similar.  My idea is to stay close to original emacs
> bindings but to avoid to many key strokes.
>
> ;;; Window splitting
> (global-set-key (kbd "M-3") 'split-window-horizontally) ; was digit-argument
> (global-set-key (kbd "M-2") 'split-window-vertically) ; was digit-argument
> (global-set-key (kbd "M-1") 'delete-other-windows) ; was digit-argument
> (global-set-key (kbd "M-0") 'delete-window) ; was digit-argument
> (global-set-key (kbd "M-o") 'other-window) ; was prefix
> ;; Remove locale key binding of M-o in dired
> (add-hook 'dired-mode-hook 'my-dired-mode-hook)
> (defun my-dired-mode-hook ()
>   (define-key dired-mode-map (kbd "M-o") nil)) ; was dired-omit-mode

umm.. that code looks like from
http://code.google.com/p/ergoemacs/

 Xah


  reply	other threads:[~2009-08-21  7:12 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-20  8:58 moving around multiple buffers Tamas K Papp
2009-08-20  9:21 ` Joost Kremers
2009-08-20  9:56   ` Lennart Borgman
     [not found]   ` <mailman.4882.1250762244.2239.help-gnu-emacs@gnu.org>
2009-08-20 10:10     ` Joost Kremers
2009-08-20 10:23       ` Tamas K Papp
2009-08-20 10:43         ` Joost Kremers
2009-08-20 14:07           ` Stefan Kamphausen
2009-08-20 22:29             ` Joost Kremers
2009-08-20 16:08         ` Farhan Ahmed
     [not found]         ` <mailman.5013.1250859765.2239.help-gnu-emacs@gnu.org>
2009-08-21 15:03           ` Xah Lee
2009-08-21 16:07             ` Stefan Kamphausen
2009-08-20 10:11 ` Xah Lee
2009-08-21  5:50   ` Torben Knudsen
2009-08-21  7:12     ` Xah Lee [this message]
2009-08-21 16:56       ` Benjamin Andresen
2009-08-22  2:35         ` Xah Lee
2009-08-20 15:17 ` Drew Adams
2009-08-20 16:45 ` A.Politz
2009-08-20 17:01 ` Nikolaj Schumacher
2009-08-22  1:33 ` Kevin Rodgers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca649a06-9cb4-485e-95f1-787b0bac472d@u16g2000pru.googlegroups.com \
    --to=xahlee@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).