From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Funk Newsgroups: gmane.emacs.help Subject: Re: Location of .emacs file under `su` and `su -`? Date: Wed, 23 Aug 2006 11:15:16 +0100 Message-ID: References: <386rr3-n6k.ln1@news.ducksburg.com> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1156329776 18172 80.91.229.2 (23 Aug 2006 10:42:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 10:42:56 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 23 12:42:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFqAC-0007ti-TG for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 12:40:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFqAC-0000Lb-BG for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 06:40:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsserver.news.garr.it!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-X-Trace: individual.net TW2EB74iEsLeaoY4obU2EwHDcOld4CtpQEhcylcaaozbgFOQsM X-Orig-Path: news.ducksburg.com!news User-Agent: slrn/0.9.8.1pl1 (Debian) Original-Xref: shelby.stanford.edu gnu.emacs.help:141241 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36864 Archived-At: On 2006-08-22, Peter Dyballa 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.