Technology

Testing for Windows in Emacs


I basically use the same Emacs setup on my work (Windows) and personal computers (Linux). I always wondered if there was a way to have one init.el file to rule them all. But the problem is that while most of the settings in the init.el file are platform independent, there are a few that are not:

  • file locations of certain programs (like aspell)
  • programs that are too much of a pain to install in Windows (like w3m)
  • Windows-specific hacks (like the location of find)

You could have a different file for each computer or you could just test to see if you are running Emacs. Here’s how to do that:

Continue reading