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: Perry Smith
Subject: Re: How to make emacs stop trying to load /home/sb/.emacs after su to root?
Date: Thu, 11 Jul 2019 21:56:17 -0500


> On Jul 11, 2019, at 1:09 PM, Steinar Bang <sb@dod.no> wrote:
> 
> Google was more helpful:
> https://www.gnu.org/software/emacs/manual/html_node/emacs/Find-Init.html#Find-Init
From your reference:

More precisely, Emacs first determines which user's init file to use. It gets 
your user name from the environment variables LOGNAME andUSER; if neither of 
those exists, it uses effective user-ID. If that user name matches the real 
user-ID, then Emacs uses HOME; otherwise, it looks up the home directory 
corresponding to that user name in the system's data base of users.

Is USER or LOGNAME set?  If not, would setting one of those be easier?

You said this is new behavior.  Are you sure of that?  The page your reference 
seems all perfectly normal way things work.

Last, in another email you said that if you “su - root”, then it is set to “”.  
That seems weird too.  Is that before ~root/.emacs.el et. al. doesn’t exist?

pedz





reply via email to

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