[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: cycling through windows

From: Drew Adams
Subject: RE: cycling through windows
Date: Fri, 12 Jul 2013 08:51:57 -0700 (PDT)

> (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"))
> 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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]