GNU bug report logs - #25819
25.1; Added by Package.el. Added by Package.el. Added by Package.el. Added by Package.el.

Previous Next

Package: emacs;

Reported by: frederik <at> ofb.net

Date: Mon, 20 Feb 2017 20:16:01 UTC

Severity: minor

Tags: fixed, patch

Merged with 24643

Found in version 25.1

Fixed in version 26.1

Done: npostavs <at> users.sourceforge.net

Bug is archived. No further changes may be made.

Full log


Message #33 received at 25819 <at> debbugs.gnu.org (full text, mbox):

From: frederik <at> ofb.net
To: Glenn Morris <rgm <at> gnu.org>
Cc: 25819 <at> debbugs.gnu.org, npostavs <at> users.sourceforge.net
Subject: Re: bug#25819: 25.1; Added by Package.el. Added by Package.el. Added
 by Package.el. Added by Package.el.
Date: Wed, 22 Feb 2017 22:39:48 -0800
> > You don't think my problem is common!? :) Well I'm not sure how other
> > people edit files as root, but after a few incarnations I decided that
> > a barebones /root/.emacs pointing to ~/.emacs is the best way to go.
> 
> I meant the odd use of changing HOME to load someone else's .emacs.
> As it turns out, that isn't related.
> 
> (Did you consider symlinking ~frederik.emacs to /root/.emacs, and adding
> UID == 0 conditionals where needed?)

Yes I think this was one thing I tried. I can't remember what went
wrong there, but one thing is I have a bunch of lines like this in my
~/.emacs:

    (load "~/.emacs.d/fhe-bury-buffer.el")

So I think $HOME has to be changed to ~/, while ~/.emacs is being
read, as you can see in my earlier message. But it turns out that this
was pretty much enough.

Tramp looks cool; I wish I'd known about it before, but now I use
sshfs and sudo and this obviates most of the uses for me.

I don't use the Emacs GUI - strictly terminal here - and I often open
files from the command line, via emacsclient, rather than C-x C-f.
Particularly for stuff like configuration files that I end up editing
as root.

.zprofile: export EDITOR="emacsclient -c -nw"
.zshrc: alias em=$EDITOR

I don't know what you'd call my usage pattern but it's perhaps more
like a vim user, using the editor from the shell and keeping it
lightweight.




This bug report was last modified 8 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.