0

I restored my machine from a backup where I hadn't backed up system directories.

Now my restored emacs (spacemacs) insist on trying to read and write from this directory and I keep on getting errors like this:

File mode specification error: (file-missing Creating directory with prefix No such file or directory /var/folders/wq/hh0gd3_57pschvmv66g839w40000gq/T/babel-)
[persp-mode] Error: Can not autoresume perspectives -- (file-missing Creating directory with prefix No such file or directory /var/folders/wq/hh0gd3_57pschvmv66g839w40000gq/T/babel-)

How can I fix this?

Reinstalling spacemacs (deleting the ~/.emacs.d/ and re-cloning from git) didn't help.

0

It turned out that I had to delete the ~/.spacemacs.env file which had the directory hardcoded in the TMPDIR variable. This file gets re-created on spacemacs launch with the correct directory.

  • Mark your answer as the solution if it fixed your problem. – DoMiNeLa10 Dec 31 '18 at 13:02
  • 1
    Done. It sucks I can't do that right away after answering and because of that I forgot to come back some days later. – loxs Dec 31 '18 at 14:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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