From: Torben Knudsen <tk@es.aau.dk>
To: help-gnu-emacs@gnu.org
Subject: Re: moving around multiple buffers
Date: Fri, 21 Aug 2009 07:50:17 +0200 [thread overview]
Message-ID: <87d46p90me.fsf@es.aau.dk> (raw)
In-Reply-To: c6250f13-da32-4fe1-aaa4-e06616c1c8b0@v15g2000prn.googlegroups.com
Xah Lee <xahlee@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
--
Associate Prof. Ph.D Torben Knudsen Mobile : (+45) 2787 9826
Section of Automation and Control, Direct : 6 8694
Department of Electronic Systems, Email : tk@es.aau.dk
Aalborg University
Fredrik Bajersvej 7
DK-9220 Aalborg Ø
Denmark
next prev parent reply other threads:[~2009-08-21 5:50 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 [this message]
2009-08-21 7:12 ` Xah Lee
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=87d46p90me.fsf@es.aau.dk \
--to=tk@es.aau.dk \
--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).