[Top][All Lists]

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

Re: buffer for unopened file?

From: Sebastian Tennant
Subject: Re: buffer for unopened file?
Date: Fri, 19 Oct 2007 18:36:18 +0300
User-agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1 (gnu/linux)

Quoth "David L" <address@hidden>:
> I'd like to be able to give emacs a big list of filenames
> and have each file appear as if it has been visited with
> respect to having it appear in my buffer list.  But only
> when changing to that buffer do I want it to actually open
> the file.  Is that possible?  It takes a minute or so to open
> all of the files and wastes memory to open them all.  But
> I like to have a menu of the files I might be needing.

How about just creating a plain text file, such as:


and save it as ~/workspace/files-i-often-visit.txt

Then add the following to your ~/.emacs:

 (global-set-key "\C-cf" 'find-file-at-point) ;Ctrl-C f  to visit file at point 

 ;;; this should be the last line
 (find-file "~/workspace/files-i-often-visit.txt")

Then all you need to do is select the buffer files-i-often-visit.txt
(which will be visited at startup), and using C-p and C-n to navigate up
and down in your list, you can simply visit whichever file you like
using C-cf <RET>.


P.S. You could add the string -*- mode: view -*- as the first line of
     file-i-visit-often.txt to ensure the buffer is always visited

reply via email to

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