AstonJ

AstonJ

Vim And Emacs Are The Most Important Skills You Should Learn

This was interesting:

He’s definitely more of an Emacs fan (which is fine) and the thing I found interesting is how you work with remote servers - on Vim you don’t, you use the terminal to SSH into a remote server and then fire up the installed Vim there to edit files, but in this vid he’s saying with Emacs you ssh into the server from emacs and any files you edit you edit on -your- emacs on your local machine, not one installed on the server. This is interesting!

So does this mean Emacs has a ‘full’ terminal? And will it use my .bashrc or .zshrc automatically? I have lots of functions/aliases etc that I’d want to use. Would be cool if it can do this!

Most Liked

Hallski

Hallski

I have never really explored the workflow in Emacs but I believe if you just open a terminal and ssh from there you will only have that terminal connected to the SSH session. Emacs has support for connecting (similar to VSCode) through TRAMP Mode which from my understanding will cause the normal “find file” etc to act on the remote file system.

On that note, I can recommend you look into using vterm, I have found it to be a much greater experience than M-x term.

You can enable it through .doom.d/init.el (it needs libvterm as well though).

OvermindDL1

OvermindDL1

Emacs can do all that and a whole lot more. There’s a reason the meme about Emacs being its own OS is a thing, lol.

AstonJ

AstonJ

I’ve just tried it but I’m stuck :lol:

I’m using doom-emacs and do SPC :term then I ssh into the server with my usual alias, then when there I navigate to the directory which contains the file I want to open. If I press escape and then SPC I am shown:

If I press . I am only shown my local files, but I want to open one of the files from the server - is there an easy way to do that after having navigated to the folder as I have above? Or can I only open a file as per the video where you must already know the file name and location and use the path while ssh’ing in (in which case it’s not much use to me as it’s much easier then just to ssh into the server normally).

Popular General Dev topics Top

herminiotorres
Tell us what kind of machine/hardware do you have? and what kind of reason for? describe your hardware… :computer: :nerd_face:
New
AstonJ
I really like our #general-developer-forum:in-the-news section and am wondering whether we could automate some of the cross-posting of th...
New
AstonJ
Things like smart speakers (such Amazon Alexa), smart TVs or other devices with built in microphones, cameras or with other features that...
New
wmnnd
Here’s the story how one of the world’s first production deployments of LiveView came to be - and how trying to improve it almost caused ...
New
Exadra37
I am thinking in buying one as the second monitor for my Thinkpad while I am travelling: Anyone has experience in using on...
New
First poster: dimitarvp
Rails is not written in Ruby. I’m born and raised in Kraków, a beautiful city in Poland, maybe you’ve heard about it, maybe you’ve even ...
New
AstonJ
If you get Can't find emacs in your PATH when trying to install Doom Emacs on your Mac you… just… need to install Emacs first! :lol: bre...
New
AstonJ
This might be my next keyboard (the down arrow on my Apple Magic Keyboard has stopped working :icon_rolleyes:) https://cdn.shopify.com/s...
New
First poster: bot
The overengineered Solution to my Pigeon Problem. TL;DR: I built a wifi-equipped water gun to shoot the pigeons on my balcony, controlle...
New
harwind
I’m working on a Spring Boot project and I have a controller where I want to map multiple request paths to a single method. Let’s say I h...
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
New
PragmaticBookshelf
“Finding the Boundaries” Hero’s Journey with Noel Rappin @noelrappin Even when you’re ultimately right about what the future ho...
New
PragmaticBookshelf
Learn different ways of writing concurrent code in Elixir and increase your application's performance, without sacrificing scalability or...
New
PragmaticBookshelf
“A Mystical Experience” Hero’s Journey with Paolo Perrotta @nusco Ever wonder how authoring books compares to writing articles?...
New
DevotionGeo
The V Programming Language Simple language for building maintainable programs V is already mentioned couple of times in the forum, but I...
New
AstonJ
Saw this on TikTok of all places! :lol: Anyone heard of them before? Lite:
New
PragmaticBookshelf
Author Spotlight: Sophie DeBenedetto @SophieDeBenedetto The days of the traditional request-response web application are long gone, b...
New
New