[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Fwd: Location of .emacs file under `su` and `su -`?]
From: |
Lennart Borgman |
Subject: |
[Fwd: Location of .emacs file under `su` and `su -`?] |
Date: |
Tue, 22 Aug 2006 14:12:24 +0200 |
User-agent: |
Thunderbird 1.5.0.5 (Windows/20060719) |
How about this in Emacs 22?
-------- Original Message --------
Subject: Location of .emacs file under `su` and `su -`?
Date: Tue, 22 Aug 2006 12:26:27 +0100
From: Adam Funk <address@hidden>
To: address@hidden
Newsgroups: gnu.emacs.help
When I use `su` and run emacs, I get errors because it loads
~adam/.emacs as the init file, which contains
(add-to-list 'load-path "~/.local/site-lisp/")
but then doesn't find the *.el and *.elc files there, because (as far
as I can tell) it's looking in /root/.local/site-lisp/, which doesn't
exist. Does that seem to be a correct interpretation?
When I use `su -` and run emacs, it loads ~root/.emacs as the init
file.
In both cases, `env` tells me
EDITOR=/usr/bin/emacs
HOME=/root
USERNAME=root
USER=root
so I think the difference is here:
su --> LOGNAME=adam
su - --> LOGNAME=root
When emacs starts up, does it actually look up "~${LOGNAME}/.emacs"
instead of (what I would expect) "${HOME}/.emacs"?
- [Fwd: Location of .emacs file under `su` and `su -`?],
Lennart Borgman <=