0

I am currently trying to install spacemacs on my Arch Linux. I am following the standard installation instructions that have been put up here.

Now after cloning the .emacs.d from the spacemacs repository, whenever I open emacs, I get the error:

File error: Creating directory, Permission denied, /home/sharand/.emacs.d/. cache

After which, the suggestion on this question prompted me to create a .cache folder inside .emacs.d. But after this, I reopened emacs to get this error:

File error: Creating directory, Permission denied, /home/sharand/.emacs.d/.cache/auto-save

Now I am stuck in a cycle of creating folders and reopening emacs. I just want to know how to change the writing permissions of emacs. Invoking a sudo emacs, just makes it go to the default emacs and does not bring up spacemacs (does anyone know why this is the case?).

How would I go about making sure that I have writing permissions for emacs?

  • Are you able to install and use Emacs without any problems if we eliminate spacemacs from the list of potential problems? Spacemacs is just a bunch of user-configurations and additional libraries on top of a base installation of Emacs. – lawlist Feb 20 '17 at 6:53
  • 1
    @lawlist yes, emacs runs perfectly without the configs that spacemacs imposes. – Sharan Duggirala Feb 20 '17 at 7:01
  • What are the actual file permissions on those directories ? You can use 'find -ls' to see them all at once if I recall correctly. – YoungFrog Feb 28 '17 at 8:40
  • @YoungFrog Could you please expand on that command? – Sharan Duggirala Feb 28 '17 at 11:25
  • 'find' is e.g. GNU find, a command line tool. find -ls will show all files/directories within current subdir, including their owner and permissions. – YoungFrog Feb 28 '17 at 23:37

Your Answer

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

Browse other questions tagged or ask your own question.