Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

5 Answers 5

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

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

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 : stackoverflow.com/a/1110487/311660 –  Slomojo Jan 23 '13 at 23:34
add comment

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. http://www.gnu.org/software/emacs/manual/html_node/emacs/Saving-Emacs-Sessions.html#Saving-Emacs-Sessions

share|improve this answer
add comment

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
2  
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.