DEV Community

Discussion on: Configuring for Emacs 22 and 25

Collapse
 
attilavm profile image
Attila Molnar • Edited

I use my local Emacs with tramp to access remotes, which connects to them with SSH.

It is capable to use dired, magit or the interpreters/compilers on the remote machine.

It can also use su so, you do not have to start Emacs as root to edit files as root on your local, and it is also possible with remotes, so you can forbid root ssh login.

This a tramp hop proxy definition to ssh into a server as normal user then elevate to root.

(add-to-list 'tramp-default-proxies-alist
         '("host" "root" "/ssh:user@host#7822:"))

Tramp is cranky with fancy propmts, but it can be solved easily

I hope this helps.

Collapse
 
gonsie profile image
Elsa Gonsiorowski

You're right that remote access to files is great way to avoid the Emacs version problems.

My main motivation was to get Emacs 22 to stop complaining when I started it up to look at files on a server or make quick edits. Tramp is key for working on code/doing advanced things with remote files.

Thanks for the additional information!