[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: open files as root
From: |
Anselm Helbig |
Subject: |
Re: open files as root |
Date: |
Mon, 31 Aug 2009 15:34:43 +0200 |
Hi!
At Sat, 29 Aug 2009 18:13:29 +0200,
henry atting <nsmp_01@online.de> wrote:
>
> On Sa, Aug 29 2009, David Kastrup wrote:
>
> > henry atting <nsmp_01@online.de> writes:
> >
> >> Is there another way as with tramp to open files as root within emacs?
> >
> > No.
> >
> >> (Since I am sure that tramp and I never will be friends in this life)
> >
> > Partners is all you need.
>
> Okay, tramp won, I switched from zsh (which impressing functionality I
> don't use anyway) back to bash.
>
> (I now the appropriate lines which are to add to .zshrc, but this time
> they don't work â another time they did.)
No need to drop zsh, just set a proper regex for
tramp-shell-prompt-pattern. This is what works for me:
(setq tramp-shell-prompt-pattern "^[^$>\n]*[#$%>] *\\(\[[0-9;]*[a-zA-Z]
*\\)*")
HTH,
Anselm
--
Anselm Helbig
mailto:anselm.helbig+news2009@googlemail.com