[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: moving around multiple buffers
From: |
Torben Knudsen |
Subject: |
Re: moving around multiple buffers |
Date: |
Fri, 21 Aug 2009 07:50:17 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
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
RE: moving around multiple buffers, Drew Adams, 2009/08/20
Re: moving around multiple buffers, Nikolaj Schumacher, 2009/08/20
Re: moving around multiple buffers, A.Politz, 2009/08/20
Re: moving around multiple buffers, Xah Lee, 2009/08/21
- Re: moving around multiple buffers,
Torben Knudsen <=
Re: moving around multiple buffers, Kevin Rodgers, 2009/08/21