unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to open all files in a directory?
@ 2008-11-03 16:47 Pony
  2008-11-03 19:38 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pony @ 2008-11-03 16:47 UTC (permalink / raw)
  To: help-gnu-emacs

Hello everyboday,

do you know is there a way to open all the files in one directory?
instead of opening it one by one...

Thanks.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to open all files in a directory?
  2008-11-03 16:47 How to open all files in a directory? Pony
@ 2008-11-03 19:38 ` Peter Dyballa
  2008-11-03 19:52 ` Drew Adams
       [not found] ` <mailman.2806.1225741931.25473.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Peter Dyballa @ 2008-11-03 19:38 UTC (permalink / raw)
  To: Pony; +Cc: help-gnu-emacs


Am 03.11.2008 um 17:47 schrieb Pony:

> do you know is there a way to open all the files in one directory?

You could start emacs-server and use emacsclient ...

Another option is to load dired-x. Then you'll have in dired-mode the  
find-file function, bound to F. This opens all marked files.


--
Greetings

   Pete

The day Microsoft makes something that doesn't suck is the day they  
start selling vacuum cleaners.
				– Ernest Jan Plugge







^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: How to open all files in a directory?
  2008-11-03 16:47 How to open all files in a directory? Pony
  2008-11-03 19:38 ` Peter Dyballa
@ 2008-11-03 19:52 ` Drew Adams
       [not found] ` <mailman.2806.1225741931.25473.help-gnu-emacs@gnu.org>
  2 siblings, 0 replies; 6+ messages in thread
From: Drew Adams @ 2008-11-03 19:52 UTC (permalink / raw)
  To: 'Pony', help-gnu-emacs

> do you know is there a way to open all the files in one directory?
> instead of opening it one by one...

With Emacs there is always a way - no, several ways. ;-)

`C-x C-f * RET' will open all files in the current directory (or `C-x C-f .*
RET' if you also want the dot files). Each file is visited in a buffer, but the
buffers are not all displayed. Use `C-x C-b' to access buffers.

File-name globbing (wildcards) always works with commands such as `find-file'
(`C-x C-f') when you hit `RET'.





^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to open all files in a directory?
       [not found] ` <mailman.2806.1225741931.25473.help-gnu-emacs@gnu.org>
@ 2008-11-03 22:19   ` Pony
  2008-11-03 22:48     ` Andreas Politz
  0 siblings, 1 reply; 6+ messages in thread
From: Pony @ 2008-11-03 22:19 UTC (permalink / raw)
  To: help-gnu-emacs



Thanks.

I think I didn't make myself clear.
I use ido mode in Emacs, which means when you input `C-x C-f * RET' ,
emacs will open a new file named " * " instead of open all the files.

At present I just close the ido mode first, then open all files, and
open ido mode again.
I'd like to know whether there is a smarter way to do this.

EMACS makes me want to be much more lazyer!!       ^_^









On 11月4日, 上午3时52分, "Drew Adams" <drew.ad...@oracle.com> wrote:
> > do you know is there a way to open all the files in one directory?
> > instead of opening it one by one...
>
> With Emacs there is always a way - no, several ways. ;-)
>
> `C-x C-f * RET' will open all files in the current directory (or `C-x C-f .*
> RET' if you also want the dot files). Each file is visited in a buffer, but the
> buffers are not all displayed. Use `C-x C-b' to access buffers.
>
> File-name globbing (wildcards) always works with commands such as `find-file'
> (`C-x C-f') when you hit `RET'.



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to open all files in a directory?
  2008-11-03 22:19   ` Pony
@ 2008-11-03 22:48     ` Andreas Politz
  2008-11-04  9:39       ` Pony
  0 siblings, 1 reply; 6+ messages in thread
From: Andreas Politz @ 2008-11-03 22:48 UTC (permalink / raw)
  To: help-gnu-emacs

Pony wrote:
> 
> Thanks.
> 
> I think I didn't make myself clear.
> I use ido mode in Emacs, which means when you input `C-x C-f * RET' ,
> emacs will open a new file named " * " instead of open all the files.
> 
> At present I just close the ido mode first, then open all files, and
> open ido mode again.
> I'd like to know whether there is a smarter way to do this.
> 
> EMACS makes me want to be much more lazyer!!       ^_^
> 
> 

When in ido-mode press C-f .This disables ido for the moment.

-ap
> 
> 
> 
> 
> 
> 
> 
> On 11月4日, 上午3时52分, "Drew Adams" <drew.ad...@oracle.com> wrote:
>>> do you know is there a way to open all the files in one directory?
>>> instead of opening it one by one...
>> With Emacs there is always a way - no, several ways. ;-)
>>
>> `C-x C-f * RET' will open all files in the current directory (or `C-x C-f .*
>> RET' if you also want the dot files). Each file is visited in a buffer, but the
>> buffers are not all displayed. Use `C-x C-b' to access buffers.
>>
>> File-name globbing (wildcards) always works with commands such as `find-file'
>> (`C-x C-f') when you hit `RET'.
> 




^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: How to open all files in a directory?
  2008-11-03 22:48     ` Andreas Politz
@ 2008-11-04  9:39       ` Pony
  0 siblings, 0 replies; 6+ messages in thread
From: Pony @ 2008-11-04  9:39 UTC (permalink / raw)
  To: help-gnu-emacs

Thanks so much.
I got it.






On 11月4日, 上午6时48分, Andreas Politz <poli...@fh-trier.de> wrote:
> Pony wrote:
>
> > Thanks.
>
> > I think I didn't make myself clear.
> > I use ido mode in Emacs, which means when you input `C-x C-f * RET' ,
> > emacs will open a new file named " * " instead of open all the files.
>
> > At present I just close the ido mode first, then open all files, and
> > open ido mode again.
> > I'd like to know whether there is a smarter way to do this.
>
> > EMACS makes me want to be much more lazyer!!       ^_^
>
> When in ido-mode press C-f .This disables ido for the moment.
>
> -ap
>
>
>
> > On 11月4日, 上午3时52分, "Drew Adams" <drew.ad...@oracle.com> wrote:
> >>> do you know is there a way to open all the files in one directory?
> >>> instead of opening it one by one...
> >> With Emacs there is always a way - no, several ways. ;-)
>
> >> `C-x C-f * RET' will open all files in the current directory (or `C-x C-f .*
> >> RET' if you also want the dot files). Each file is visited in a buffer, but the
> >> buffers are not all displayed. Use `C-x C-b' to access buffers.
>
> >> File-name globbing (wildcards) always works with commands such as `find-file'
> >> (`C-x C-f') when you hit `RET'.



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-11-04  9:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-03 16:47 How to open all files in a directory? Pony
2008-11-03 19:38 ` Peter Dyballa
2008-11-03 19:52 ` Drew Adams
     [not found] ` <mailman.2806.1225741931.25473.help-gnu-emacs@gnu.org>
2008-11-03 22:19   ` Pony
2008-11-03 22:48     ` Andreas Politz
2008-11-04  9:39       ` Pony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).