Recover autosaved file in emacs

Open the file you were editing before you were interrupted.

Now,

M-x recover-file <Enter> 
yes

If the file is locked, you will be asked to either:

s-Steal the lock

p-proceed despite lock

q-Quit

Choose s, and save the file.

 


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.