LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   .emacs file ignored by Raspberry Pi (https://www.linuxquestions.org/questions/linux-newbie-8/emacs-file-ignored-by-raspberry-pi-4175573626/)

iFunction 03-01-2016 03:08 AM

.emacs file ignored by Raspberry Pi
 
Hi there,

does anyone know where the .emacs file is supposed to sit on a Raspberry pi, I have one that I have copied from my Mac and it does work, though only when you start emacs from the start menu or a desktop icon, but then emacs only starts up in read only mode.

I usually start if from the terminal using:
Code:

sudo emacs /file/I/want/to/edit
but then it just opens up as the standard default settings.

How can I get it to open with the .emacs file no matter where it is launched from.

Kind regards
iFunc

rtmistler 03-01-2016 07:01 AM

It's supposed to go in your user account's home directory.

One thing to try also is to use the Options menu and choose Save Options. When that is performed, the status bar at the bottom of the frame should tell you that it saved the .emacs file and also where it saved it at.

Why do you need to do sudo to run emacs though? Consider figuring out why this is so and see if you can resolve that first.

iFunction 03-01-2016 07:29 AM

This is the main problem, on a Raspberry Pi, emacs default has the buffer as read only, so the only way I have found to get around that is to open it using sudo from the command line.

Well it appears that C-x C-q removes the read only flag which is nice, I will try the .emacs file again when I get home.

Thanks for the tip.

Regards
iFunc


All times are GMT -5. The time now is 05:54 PM.