[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" <idht4n@gmail.com>:
> 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:
~/workspace/file1
~/workspace/file2
.
.
.
~/workspace/fileN
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>.
Sebastian
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
read-only
- buffer for unopened file?, David L, 2007/10/19
- Re: buffer for unopened file?, Amy Templeton, 2007/10/19
- Re: buffer for unopened file?,
Sebastian Tennant <=
- RE: buffer for unopened file?, Drew Adams, 2007/10/19
- Re: buffer for unopened file?, Sebastian Tennant, 2007/10/19
- RE: buffer for unopened file?, Drew Adams, 2007/10/19
- Re: buffer for unopened file?, David L, 2007/10/19
- RE: buffer for unopened file?, Drew Adams, 2007/10/19
- Re: buffer for unopened file?, Dieter Wilhelm, 2007/10/20
- RE: buffer for unopened file?, Drew Adams, 2007/10/20
- Re: buffer for unopened file?, Dieter Wilhelm, 2007/10/20
- Re: buffer for unopened file?, Dieter Wilhelm, 2007/10/20
- Icicles and Emacs [was: buffer for unopened file?], Drew Adams, 2007/10/20