Monday, May 18, 2009

Start Emacs with Several Files Open

I like to log notes in several text files while I work, and I hate having to browse around the file system to get them all loaded. So I keep a batch file around to start the files I'm going to need every day. This is really simple and obvious but I find it ridiculously handy.

The runemacs.bat script that comes with Windows Emacs installations will take multiple files as command-line parameters. This is only relevant to Windows, although I'm sure you could do this in a shell script on other platforms.

So, I create batch files that have lines like this:


although you can also do


if the files are not in the same folder.

No comments:

Post a Comment