From: frederik@ofb.net
To: Glenn Morris <rgm@gnu.org>
Cc: 25819@debbugs.gnu.org, npostavs@users.sourceforge.net
Subject: 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 [thread overview]
Message-ID: <20170223063948.GS1204@ofb.net> (raw)
In-Reply-To: <xd1supzkqu.fsf@fencepost.gnu.org>
> > 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.
prev parent reply other threads:[~2017-02-23 6:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-20 20:14 bug#25819: 25.1; Added by Package.el. Added by Package.el. Added by Package.el. Added by Package.el frederik
2017-02-21 22:19 ` Glenn Morris
2017-02-21 23:04 ` frederik
2017-02-22 19:28 ` Glenn Morris
2017-02-22 20:48 ` frederik
2017-02-23 2:28 ` npostavs
2017-02-23 6:23 ` frederik
2017-02-26 16:18 ` npostavs
2017-02-23 2:47 ` Glenn Morris
2017-02-23 6:39 ` frederik [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170223063948.GS1204@ofb.net \
--to=frederik@ofb.net \
--cc=25819@debbugs.gnu.org \
--cc=npostavs@users.sourceforge.net \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).