From: jpkotta <jpkotta@gmail.com>
To: gnu.emacs.help@googlegroups.com
Cc: Help-gnu-emacs@gnu.org
Subject: Re: sudo emacs
Date: Wed, 6 Feb 2013 08:32:59 -0800 (PST) [thread overview]
Message-ID: <0f49e2d1-6c52-4174-95c2-dfb2f7af6a21@googlegroups.com> (raw)
In-Reply-To: <mailman.19118.1360145191.855.help-gnu-emacs@gnu.org>
On Wednesday, February 6, 2013 4:06:18 AM UTC-6, drain wrote:
> This somewhat downgrades root privileges, but I cannot encrypt mail without
>
> it. Hitherto I almost never ran Emacs with sudo.
>
>
>
> The problem is, I cannot access any files without sudo. Now all of my inits
>
> require it.
>
>
>
> I was thinking of creating alternates. Is it possible for .emacs to be
>
> instructed to ignore certain files and load others depending on privilege?
>
>
>
> I *believe* I've seen people write code that enables Emacs to distinguish
>
> between the OS it is running on and run the inits accordingly, etc.
>
>
>
>
>
>
>
> --
>
> View this message in context: http://emacs.1067599.n5.nabble.com/sudo-emacs-tp277339.html
>
> Sent from the Emacs - Help mailing list archive at Nabble.com.
You can use tramp to edit files as root (instead of finding "/home/user/file", find "/sudo:root@hostname:/home/user/file"). Maybe there's a way to automatically prepend the tramp sudo stuff for certain files. Take a look at http://www.emacswiki.org/emacs/OpenWith for one possible method.
You can certainly split your init file, but that seems like it's solving the wrong problem.
next parent reply other threads:[~2013-02-06 16:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.19118.1360145191.855.help-gnu-emacs@gnu.org>
2013-02-06 16:32 ` jpkotta [this message]
2013-02-06 10:06 sudo emacs drain
2013-02-06 14:59 ` Doug Lewan
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0f49e2d1-6c52-4174-95c2-dfb2f7af6a21@googlegroups.com \
--to=jpkotta@gmail.com \
--cc=Help-gnu-emacs@gnu.org \
--cc=gnu.emacs.help@googlegroups.com \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.