Re:The JED Programmer's Editor (2017)
by dan-robertson on Sunday May 03, 2020 @09:19AM
(#23058817)
The thing which I wish was easy is having ssh pass enough things forward (and backward) that you can ssh somewhere, run emacsclient on a file and have that file show up (via tramp) in your emacs.
It’s just about possible but hard and hacks and not really supported by ssh.
The syntax for tramp-mode is on the arcane side.
I mostly use emacs /ssh:ab:.bashrc which I think compares favorably with
ssh ab
emacs .bashrc
(or anything with a URL)my .ssh/config contains a "Host ab" section for particulars about logging into the machine.
Although you have a point. For instance there is a weird bug or two in tramp mode, like (absolute-file-p "/ssh:ab:.bashrc") erroneously returns t
But when I discovered emacs tramp mode, I sort of got away from that.
emacs comes with tramp mode built-in and allows you to edit a file on even very small embedded devices using only ssh.
I think it might work on telnet or other protocols, but I've never tried them.
for example
where ssh is the protocol, foo is the machine name and /etc/bar.cfg is the file on foo to edit.or