Post AdRsArTG5rDHoaEYD2 by brokenix@emacs.ch
(DIR) More posts by brokenix@emacs.ch
(DIR) Post #AdRsArTG5rDHoaEYD2 by brokenix@emacs.ch
2024-01-02T21:51:48Z
0 likes, 1 repeats
if you run #Emacs from a shell started by su and XDG_CONFIG_HOME is not set in your environment, Emacs tries to find your own initialization files, 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.More precisely, Emacs first determines which user’s init file to use. It gets your user name from the environment variables LOGNAME and USER; if neither of those exists, it uses the 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.--Manuals