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

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

Re: Location of .emacs file under `su` and `su -`?


From: Adam Funk
Subject: Re: Location of .emacs file under `su` and `su -`?
Date: Wed, 23 Aug 2006 11:15:16 +0100
User-agent: slrn/0.9.8.1pl1 (Debian)

On 2006-08-22, Peter Dyballa <Peter_Dyballa@web.DE> wrote:
>
> Am 22.08.2006 um 13:26 schrieb Adam Funk:
>
>> When emacs starts up, does it actually look up "~${LOGNAME}/.emacs"
>> instead of (what I would expect) "${HOME}/.emacs"?
>
> You might be able to avoid asking this question by invoking GNU Emacs  
> with the option --user or -u and then passing that user's login name.  
> Could be $USER is sufficient ...

I've changed the line in /root/.bashrc from

  export EDITOR='/usr/bin/emacs -nw'

to

  export EDITOR='/usr/bin/emacs -nw -u root'

and that's fixed it.


reply via email to

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