Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Often when I start emacs I open the same set of files. How can I make it so that I can quickly select several files from a directory and open them?

share|improve this question

You could try setting up a fileset in Emacs to accomplish this .

share|improve this answer
+1 I did not know about this. Thanks. – kjfletch Apr 6 '10 at 11:30

When you open emacs you can run dired. This will allow you to mark several files and open them at once. Not the best method, just putting it out there.

Dired Manual | Marking files with Dired

share|improve this answer
You can't do this with dired, (unmodified.) However dired+ can, or use Trey Jackson's defun : – Slomojo Jan 23 '13 at 23:34

Have a look at the desktop commands, you can save your desktop into a file, say at the top of your project and then use desktop-change-dir to that project and it will load the files.

Have a look at the documentation on saving sessions.

share|improve this answer

Yet another alternative is to just use a file glob (C-x C-f ~/foo/*.c RET, or proj/*/*.[ch], etc)

share|improve this answer

This is a think-outside-the-box solution:

I use ENSO launcher on my windows and am more than satisfied with it.

  • select the files you want to open in explorer or total-commander or anywhere

  • simply press ENSO button and type open with emacs

  • and presto :)

I know it is not an emacs solution, but it is a very helpful productivity tool.

share|improve this answer
Probably want emacsclient instead of emacs so that the file will open in the Emacs you already have running. You know, the one you started after your last reboot and will be open until your next reboot? – Doug Harris May 14 '10 at 18:02

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .