[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cycling through windows
From: |
Emanuel Berg |
Subject: |
Re: cycling through windows |
Date: |
Fri, 12 Jul 2013 11:13:33 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
C K Kashyap <ckkashyap@gmail.com> writes:
> What is a good way to cycle through windows ...
If you would consider not base cursor movement on windows, but on
files/buffers, I wrote this a while back in this group. I found it
somewhere on the Internet and it really made my life easier, once
I set it up.
- old but still great material below -
(global-set-key (kbd "C-j") 'jump-to-register)
(set-register ?a (cons 'file "/sudo::/etc/apt/sources.list"))
(set-register ?c (cons 'file "~/.irssi/config"))
(set-register ?C (cons 'file "/sudo::/etc/default/console-setup"))
(set-register ?e (cons 'file "~/.emacs"))
;; etc.
Note: 1) How to use it for superuser, *and* ordinary files, 2)
that it is case sensitive ('c' and 'C'), and 3) the mnemonic use
of letters (I use zsh, otherwise there would have been a 'b' for
.bashrc - you get it).
Before I started with this system, I lost a lot of time typing
file paths, iterating the buffer list, etc. Now I just (for
example) [C-j e] to bring up .emacs - and if there is such a
buffer already, I get to the correct place (where I had point on
my last visit).
--
Emanuel Berg - programmer (hire me! CV below)
computer projects: http://user.it.uu.se/~embe8573
internet activity: http://home.student.uu.se/embe8573