• using tramp

    From =?UTF-8?Q?Fran=C3=A7ois_Patte?=@francois.patte@mi.parisdescartes.fr to gnu.emacs.help on Wed Mar 26 23:31:36 2025
    From Newsgroup: gnu.emacs.help

    Bonjour,

    I would like to use tramp ssh to edit remote files. I added :

    (require 'tramp)
    (customize-set-variable 'tramp-default-method "ssh")

    in my .emacs

    But is it enough? I read that I have to type C-c C-f /ssh

    but the answer is: "C-c C-f is undefined"

    What am I missing?

    Thank you
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Loris Bennett@loris.bennett@fu-berlin.de to gnu.emacs.help on Thu Mar 27 07:40:50 2025
    From Newsgroup: gnu.emacs.help

    Salut Fran|oois,

    Fran|oois Patte <francois.patte@mi.parisdescartes.fr> writes:

    Bonjour,

    I would like to use tramp ssh to edit remote files. I added :

    (require 'tramp)
    (customize-set-variable 'tramp-default-method "ssh")

    in my .emacs

    But is it enough? I read that I have to type C-c C-f /ssh

    but the answer is: "C-c C-f is undefined"

    What am I missing?

    Thank you

    Shouldn't that just be

    C-x C-f

    for 'find-file' and then

    /ssh:

    ? That's what works for me.

    Where did you read 'C-c C-f?

    Cheers,

    Loris
    --
    This signature is currently under constuction.
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From phako@phako@invalid.net to gnu.emacs.help on Wed Jun 4 19:41:21 2025
    From Newsgroup: gnu.emacs.help

    Fran|oois Patte <francois.patte@mi.parisdescartes.fr> writes:

    Bonjour,

    Bonjour


    I would like to use tramp ssh to edit remote files. I added :

    (require 'tramp)
    (customize-set-variable 'tramp-default-method "ssh")

    in my .emacs

    I don't think it's necessary


    But is it enough? I read that I have to type C-c C-f /ssh

    but the answer is: "C-c C-f is undefined"

    It's "C-x C-f" then in the prompt you enter: /ssh:username@host:/path/to/the/file

    Regards
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From John McCue@jmccue@fuzzball.jmcunx.com to gnu.emacs.help on Thu Jun 5 11:34:52 2025
    From Newsgroup: gnu.emacs.help

    Fran?ois Patte <francois.patte@mi.parisdescartes.fr> wrote:
    Bonjour,

    I would like to use tramp ssh to edit remote files. I added :

    (require 'tramp)
    (customize-set-variable 'tramp-default-method "ssh")

    in my .emacs

    I had to have these, but I think that is remote OS dependent.

    (customize-set-variable 'tramp-syntax 'simplified)
    (setq tramp-default-method "ssh")

    Those where needed to get to files on AIX at work.
    But accessing files on Linux and *BSD I do not
    need those settings.

    But is it enough? I read that I have to type C-c C-f /ssh

    but the answer is: "C-c C-f is undefined"

    I use C-x C-f and I type
    /ssh:ID@SYSTEM:file_name

    My IDs are the same between the systems, so "ID@"
    is not needed for me.


    What am I missing?

    Thank you
    --
    [t]csh(1) - "An elegant shell, for a more... civilized age."
    - Paraphrasing Star Wars
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From Ralf Fassel@ralfixx@gmx.de to gnu.emacs.help on Thu Jun 5 14:08:09 2025
    From Newsgroup: gnu.emacs.help

    * John McCue <jmccue@fuzzball.jmcunx.com>
    | I use C-x C-f and I type
    | /ssh:ID@SYSTEM:file_name

    Jeez... you can't teach an old dog new tricks? Yes, you can!

    I just realized that with the above I do not need all that ssh-to-remote-and-start-emacs-there stuff, I can just use
    my local instance...

    R'
    --- Synchronet 3.21d-Linux NewsLink 1.2
  • From yeti@yeti@tilde.institute to gnu.emacs.help on Thu Jun 5 15:42:01 2025
    From Newsgroup: gnu.emacs.help

    Ralf Fassel <ralfixx@gmx.de> wrote:

    Jeez... you can't teach an old dog new tricks? Yes, you can!

    \o/

    I just realized that with the above I do not need all that ssh-to-remote-and-start-emacs-there stuff, I can just use
    my local instance...

    This may be related:

    <https://www.howardism.org/Technical/Emacs/literate-devops.html>

    I mainly collect notes about programming via org/babel and sometimes use languages installed on different systems in babel blocks via Tramp.
    --
    "Emacs Locked In Syndrome"? BS! Definitely I would give any editor a
    chance that offers Eshell, Gnus, Org/Babel and Tramp.
    --- Synchronet 3.21d-Linux NewsLink 1.2