By default Emacs saves a copy of the previous version of a file you are editing in the same directory as where the original file is located. It saves a copy with ~ appended to the end of the name. ~ is pronounced tilde. However, some tools and programming environments don’t know how to handle these tilde files and this can cause various problems. Someone mentioned on the Boston Ruby list that “Rails 2.3 router picked up emacs tilde ~ file before *.erb.html file …“. And the solution is pretty easy, you just tell emacs to save the ~ files in a different directory:
http://amitp.blogspot.com/2007/03/emacs-move-autosave-and-backup-files.html

Now I wonder is there a way to have it only do this for certain types of files, or only to do it for certain workspaces, that way if I’m edit a file in a directory named ruby it will save the files elsewhere, otherwise save the file in the CWD.


No Responses to “Emacs and tilde files”  

  1. No Comments

Leave a Reply



Dark Sky Over KenmoreSunset over the Charles riverMisty day in BostonSunset over Donegal Bay.Er ...Bye bye Ireland

Recently Played Tunes

  • Rufus Wainwright Rufus Wainwright
    13 May 2012
    12:24 am

  • Sting Sting
    13 May 2012
    12:13 am

  • Sasha & John Digweed Sasha & John Digweed
    28 Apr 2012
    7:46 pm

Google Search

Google

Categories