* emacs tramp and the remote environment
@ 2010-01-22 0:19 Rodrigo Amestica
2010-01-22 0:50 ` Drew Adams
[not found] ` <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 5+ messages in thread
From: Rodrigo Amestica @ 2010-01-22 0:19 UTC (permalink / raw)
To: help-gnu-emacs
I use tramp every day from home (it is a so great tool!) to compile
and run applications in a remote set of machines. At this moment the
only thing I'm missing is a better way for moving around the remote
file system. I mean, in the remote environment I set a few variables
that when running emacs locally would quickly let me go to directories
I need to visit, that is, C-x C-f $MYVAR tab
But with tramp on a remote machine all variable keep their local value
and, therefore, I cannot use them to browse the remote file system.
I thought that hooking a function that would somehow replace process-
environment with the remote one would do the trick. Then I saw in
tramp that there is already a variable named tramp-remote-process-
environment, but it seems to be meant to some other purposes.
Would it be there and advice on how to accomplish what I'm looking
for?
thanks,
Rodrigo
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: emacs tramp and the remote environment
2010-01-22 0:19 emacs tramp and the remote environment Rodrigo Amestica
@ 2010-01-22 0:50 ` Drew Adams
[not found] ` <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 5+ messages in thread
From: Drew Adams @ 2010-01-22 0:50 UTC (permalink / raw)
To: 'Rodrigo Amestica', help-gnu-emacs
> I use tramp every day from home (it is a so great tool!) to compile
> and run applications in a remote set of machines. At this moment the
> only thing I'm missing is a better way for moving around the remote
> file system. I mean, in the remote environment I set a few variables
> that when running emacs locally would quickly let me go to directories
> I need to visit, that is, C-x C-f $MYVAR tab
>
> But with tramp on a remote machine all variable keep their local value
> and, therefore, I cannot use them to browse the remote file system.
>
> I thought that hooking a function that would somehow replace process-
> environment with the remote one would do the trick. Then I saw in
> tramp that there is already a variable named tramp-remote-process-
> environment, but it seems to be meant to some other purposes.
>
> Would it be there and advice on how to accomplish what I'm looking
> for?
This doesn't respond directly to your Tramp question - I do understand that what
you really want is a full remote environment, shell, etc. I think someone else
will answer you completely about that.
However, it might also help to know that you can bookmark remote locations:
files and directories, and then visit the bookmarks. IOW, just go to the trouble
once of getting to the right places, and set bookmarks to them for subsequent
quick access.
One way to do that is using Bookmark+:
http://www.emacswiki.org/emacs/BookmarkPlus
^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>]
* Re: emacs tramp and the remote environment
[not found] ` <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>
@ 2010-01-22 14:16 ` Michael Albinus
2010-01-22 15:30 ` Drew Adams
0 siblings, 1 reply; 5+ messages in thread
From: Michael Albinus @ 2010-01-22 14:16 UTC (permalink / raw)
To: 'Rodrigo Amestica'; +Cc: help-gnu-emacs
"Drew Adams" <drew.adams@oracle.com> writes:
>> I use tramp every day from home (it is a so great tool!) to compile
>> and run applications in a remote set of machines. At this moment the
>> only thing I'm missing is a better way for moving around the remote
>> file system. I mean, in the remote environment I set a few variables
>> that when running emacs locally would quickly let me go to directories
>> I need to visit, that is, C-x C-f $MYVAR tab
>>
>> But with tramp on a remote machine all variable keep their local value
>> and, therefore, I cannot use them to browse the remote file system.
>>
>> I thought that hooking a function that would somehow replace process-
>> environment with the remote one would do the trick. Then I saw in
>> tramp that there is already a variable named tramp-remote-process-
>> environment, but it seems to be meant to some other purposes.
>>
>> Would it be there and advice on how to accomplish what I'm looking
>> for?
`tramp-remote-process-environment' is meant to *set* environment
variables on the remote host. There is no Tramp function which *reads*
them. The following code snippet might help you:
(let ((default-directory "/ssh:remotehost:"))
(with-output-to-string
(shell-command "set" standard-output)))
> However, it might also help to know that you can bookmark remote locations:
> files and directories, and then visit the bookmarks. IOW, just go to the trouble
> once of getting to the right places, and set bookmarks to them for subsequent
> quick access.
The Tramp FAQ explains several approaches, how to shorten remote file
names. See
(info "(tramp)Frequently Asked Questions")
Best regards, Michael.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-01-22 17:15 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-22 0:19 emacs tramp and the remote environment Rodrigo Amestica
2010-01-22 0:50 ` Drew Adams
[not found] ` <mailman.1910.1264121489.18930.help-gnu-emacs@gnu.org>
2010-01-22 14:16 ` Michael Albinus
2010-01-22 15:30 ` Drew Adams
2010-01-22 17:15 ` Drew Adams
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).