From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: cycling through windows Date: Fri, 12 Jul 2013 11:13:33 +0200 Organization: Aioe.org NNTP Server Message-ID: <87oba8dttu.fsf@VLAN-3434.student.uu.se> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1373620516 19978 80.91.229.3 (12 Jul 2013 09:15:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 09:15:16 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 11:15:19 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UxZRf-0007HZ-36 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 11:15:19 +0200 Original-Received: from localhost ([::1]:35490 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UxZRe-0004bH-Eg for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 05:15:18 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!newsfeed.datemas.de!rt.uk.eu.org!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: SWN/nubmpQxYKwY7hPy4YA.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:S7OO4vKHdgz444mBmexZkEf3BZk= Original-Xref: usenet.stanford.edu gnu.emacs.help:199807 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:92074 Archived-At: C K Kashyap 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