I've been using Sublime since I started and have no complaints. That being said I always hear about emacs referred to as the OG. I know there's positives and negatives to both, but is there any pressing reason to switch from one to the other?
Absolute Beginner's Guide to Emacs (2012)
201–210 of 262 posts
Re: Absolute Beginner's Guide to Emacs (2012)
#202Re: Absolute Beginner's Guide to Emacs (2012)
#203I've been using Sublime since I started and have no complaints. That being said I always hear about emacs referred to as the OG. I know there's positives and negatives to both, but is there any pressing reason to switch from one to the other?
With emacs/vim (etc) you can edit text from within a terminal, which becomes quite helpful when you SSH in somewhere. Also, with a terminal multiplexor like tmux or screen you can also easily jump from shell to shell, which has personally improved my productivity substantially from when I was using GUI based text editors like Sublime or Notepadd++.
Re: Absolute Beginner's Guide to Emacs (2012)
#204You should check out tramp-mode too. Its a killer feature that lets you edit files remotely (AWS, Azure, even docker containers!) as if they are local. All the stuff work, so you can do diffs between a local file and an a AWS file and it all appears to be local. If you are editing a remote file and do a git action (through magit) it knows to work on the remote file. You can open up remote shells also. You just go: CT…
On my last project, I decided to do all remote server ops through Tramp, just to see how convenient it was. Turns out, very.
Besides launching a shell, one trick that you can do is piping Tramp invocation, including across different protocols - essentially creating tunnels. One special case I use frequently is for sudo operations.
C-x C-f, then /ssh:username@example.com|sudo:example.com:/etc/someconfig
Suddenly, you're editing as if you launched a session with sudo on the end machine.
Coupled with dired and M-x shell, it becomes a very convenient way of working.
(And in case Tramp causes you trouble, or you just need to close remote buffers and connections, remember about M-x tramp-cleanup-* set of commands.)
EDIT:
And lest I forget - GDB integration works over Tramp too.
Re: Absolute Beginner's Guide to Emacs (2012)
#205Earlier quoted context omitted.
A common selling point for VIM is "its installed everywhere you just ssh in and it's available". To that, I usually bring up tramp and say, who cares you just ssh in from emacs.
> A common selling point for VIM is "its installed everywhere you just ssh in and it's available". I've never understood this argument unless you're coming at it from a sysadmin perspective. Sure if its available everywhere that helps when I'm sshing in to random systems to sysadmin stuff. But I don't do my development by logging in to random new systems all the time. I do my development in an environment that I have…
At one of the Lisp projects I worked on, this split was clearly visible. One of my co-workers had the dev perspective, the other had the sysadmin view. Both used Emacs and Slime, but one had it fully customized, and other had it bare-bones, and spent most of his time in raw terminal anyway.
(I, of course, am hard down on developer view. My Emacs config has no peers :)).
Re: Absolute Beginner's Guide to Emacs (2012)
#206Earlier quoted context omitted.
> A common selling point for VIM is "its installed everywhere you just ssh in and it's available". I've never understood this argument unless you're coming at it from a sysadmin perspective. Sure if its available everywhere that helps when I'm sshing in to random systems to sysadmin stuff. But I don't do my development by logging in to random new systems all the time. I do my development in an environment that I have…
That’s a very specific development story, though, common to e.g. web development. If you’re, for example, a developer working on an embedded platform which (even temporarily) has no ssh, and probably no emacs as well, tramp-mode won’t work. I’m a hard emacser, but it’s true that vi is usually much more ubiquitously available, so it’s good to know how to use it.
Re: Absolute Beginner's Guide to Emacs (2012)
#207You should check out tramp-mode too. Its a killer feature that lets you edit files remotely (AWS, Azure, even docker containers!) as if they are local. All the stuff work, so you can do diffs between a local file and an a AWS file and it all appears to be local. If you are editing a remote file and do a git action (through magit) it knows to work on the remote file. You can open up remote shells also. You just go: CT…
Forget Org mode, forget Tramp, the killer feature is renaming multiple files with Dired! ^__~
Re: Absolute Beginner's Guide to Emacs (2012)
#208You should check out tramp-mode too. Its a killer feature that lets you edit files remotely (AWS, Azure, even docker containers!) as if they are local. All the stuff work, so you can do diffs between a local file and an a AWS file and it all appears to be local. If you are editing a remote file and do a git action (through magit) it knows to work on the remote file. You can open up remote shells also. You just go: CT…
M-x compile (and related) works too.
Re: Absolute Beginner's Guide to Emacs (2012)
#209Earlier quoted context omitted.
> Who cares about the resource difference between EMACS and VS Code in real world practicality? I literally use different apps on battery vs wall power: wall: Firefox, Slack, VSCode battery: Safari, mail, Emacs The difference is clear as night & day. Mac OS X has a tab in Activity Monitor where you can observe energy impact of different apps, and it consistently reports Electron apps as... psychotic. An order of magn…
But what real world difference besides some battery improvements. They are both fast in terms of responsiveness and I find VS Code to be much easier to customize and get up and running.
Re: Absolute Beginner's Guide to Emacs (2012)
#210I've been using Sublime since I started and have no complaints. That being said I always hear about emacs referred to as the OG. I know there's positives and negatives to both, but is there any pressing reason to switch from one to the other?
With emacs/vim (etc) you can edit text from within a terminal, which becomes quite helpful when you SSH in somewhere. Also, with a terminal multiplexor like tmux or screen you can also easily jump from shell to shell, which has personally improved my productivity substantially from when I was using GUI based text editors like Sublime or Notepadd++.
A very underappreciated functionality. Over the past few months, a good 30% of my work was done this way - by SSHing from my el cheapo Windows 2-in-1 to my much more powerful Linux desktop, and using Emacs in terminal mode. With terminal set to xterm-256, it looks almost as if it was GUI Emacs, and has almost all the same functionalities available. I'm a remote worker now, but this workflow adds an extra order of magnitude more flexibility to my work day, as I can leave my environment running when I go on an errand, and pick the work up in a long queue, or on a bus.
It's one small thing, but the power of Emacs is really in how all those small little things compose together into a powerful environment you can use from almost everywhere, and on almost everything.