From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: cycling through windows Date: Fri, 12 Jul 2013 08:51:57 -0700 (PDT) Message-ID: References: <87oba8dttu.fsf@VLAN-3434.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1373644341 28326 80.91.229.3 (12 Jul 2013 15:52:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Jul 2013 15:52:21 +0000 (UTC) To: Emanuel Berg , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 12 17:52: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 1Uxfdq-00025m-0E for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 17:52:18 +0200 Original-Received: from localhost ([::1]:49098 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxfdp-0001HI-Mv for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Jul 2013 11:52:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxfdc-0001HB-7G for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:52:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uxfda-0001Qi-Aw for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:52:04 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:46529) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uxfda-0001QP-2f for help-gnu-emacs@gnu.org; Fri, 12 Jul 2013 11:52:02 -0400 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r6CFq0Tl010619 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 12 Jul 2013 15:52:01 GMT Original-Received: from userz7021.oracle.com (userz7021.oracle.com [156.151.31.85]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6CFpwST010305 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 12 Jul 2013 15:51:59 GMT Original-Received: from abhmt108.oracle.com (abhmt108.oracle.com [141.146.116.60]) by userz7021.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r6CFpw1T004011; Fri, 12 Jul 2013 15:51:58 GMT In-Reply-To: <87oba8dttu.fsf@VLAN-3434.student.uu.se> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.7 (607090) [OL 12.0.6668.5000 (x86)] X-Source-IP: ucsinet22.oracle.com [156.151.31.94] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 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:92084 Archived-At: > (global-set-key (kbd "C-j") 'jump-to-register) >=20 > (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")) >=20 > 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). If you want such persistence then instead of loading code to recreate the registers each time, just use bookmarks. That's what they're for. And bookmarks have hooks, so you can add behavior. And you can define your own bookmark types, to give you any behavior you want.