From: David Hansen <david.hansen@gmx.net>
To: help-gnu-emacs@gnu.org
Subject: Re: editing remote files with eshell
Date: Sun, 04 Mar 2007 14:29:23 +0100 [thread overview]
Message-ID: <87wt1x5e8c.fsf@localhorst.mine.nu> (raw)
In-Reply-To: 85hct1wfkl.fsf@lola.goethe.zz
On Sun, 04 Mar 2007 09:58:18 +0100 David Kastrup wrote:
> "Andrew Yates" <andrewyates@gmail.com> writes:
>
>> I've been using emacs for a little while and decided yesterday to try
>> to use emacs with eshell as my primary terminal. I have most
>> everything working satisfactorily, but I still haven't found a good
>> way to edit files on remote hosts. I know that TRAMP can edit remote
>> files using SSH, but it isn't as transparent as I would like.
>>
>> Is there any way that when I run "emacs filename" in a SSH session
>> using eshell, the remote file can be opened in a new local buffer?
>
> What I do in eshell is just
> cd /hostname:directory RET
>
> and then either C-x C-f filename RET or, alternatively,
> find-file filename RET
> (yes, use find-file as a shell command).
Or
(defun eshell/emacs (&rest files)
(if (null files)
(bury-buffer)
(mapc #'find-file
(mapcar #'expand-file-name
(eshell-flatten-list (nreverse files))))))
(defun eshell/less (&rest files)
(mapc #'view-file
(mapcar #'expand-file-name
(eshell-flatten-list (nreverse files)))))
(defalias 'eshell/more 'eshell/less)
And just type "emacs <file>*" or "less <file>*".
David
next prev parent reply other threads:[~2007-03-04 13:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.388.1172961240.7795.help-gnu-emacs@gnu.org>
2007-03-04 8:58 ` editing remote files with eshell David Kastrup
2007-03-04 10:02 ` Matthew Flaschen
2007-03-04 13:29 ` David Hansen [this message]
2007-03-03 19:05 Andrew Yates
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=87wt1x5e8c.fsf@localhorst.mine.nu \
--to=david.hansen@gmx.net \
--cc=help-gnu-emacs@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.
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).