help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to make emacs stop trying to load /home/sb/.emacs after su to ro


From: Steinar Bang
Subject: Re: How to make emacs stop trying to load /home/sb/.emacs after su to root?
Date: Thu, 11 Jul 2019 20:24:48 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (windows-nt)

>>>>> Steinar Bang <address@hidden>:

>  
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html#Find-Init

> "However, if you run Emacs from a shell started by su, Emacs tries to
>  find your own .emacs, not that of the user you are currently pretending
>  to be. The idea is that you should get your own editor customizations
>  even if you are running as the super user."

> Hm... this is annoying and new behaviour with emacs 26.

> Does anyone know if there is a way to get the emacs 25 behaviour back...?

I've been looking at the code in startup.el but I haven't been able to
determine where the cause of the new behaviour is.

Is it somewhere in startup--load-user-init-file ?

(I figure that if I can look at the code doing it, I can find a way to
undo it... this is emacs, after all...:-) )



reply via email to

[Prev in Thread] Current Thread [Next in Thread]