News for hackers. Stuff that matters.
Re:Emacs Rocks by 8fingerlouie on Wednesday December 05, 2018 @08:55AM (#18608167)
As a die hard Vi(m) user, who just rage quit Emacs today because it messed up on undoing things (Emacs did what Emacs does, sadly my brain doesn't work the same way), I had hoped to see more than just "more excuses to never leave your editor"
Re:Emacs Rocks by duckerude on Wednesday December 05, 2018 @09:05AM (#18608227)
I like to use undo-tree for making sense of my undo history. It's inspired by Vim, apparently, so it might work for you.

https://elpa.gnu.org/packages/undo-tree.html

Re:Emacs Rocks by FPGAhacker on Wednesday December 05, 2018 @09:31AM (#18608461)
Undo-tree is pretty awesome. Saved me from anguish more than a few times.

But alas, emacs is just too slow during startup for my workflow. I use it with clojure but only because of Cider.

Re:Emacs Rocks by duckerude on Wednesday December 05, 2018 @10:00AM (#18608720)
It's very snappy to open if you run it as a server. Defining an alias for 'emacsclient -a= -c' was enough for me. It will boot Emacs if it's not already running, but otherwise, you immediately get a new frame hooked up to the running instance. You can also run Emacs as a systemd user service, to spare even that first delay.

You do have to get into the habit of exiting by closing the buffer or the frame instead of quitting Emacs.

Re:Emacs Rocks by FPGAhacker on Wednesday December 05, 2018 @07:48PM (#18614325)
I’ve tried that a few times, but inevitably emacs+plugins get into a bad state and I have to restart.

Plus I haven’t figured out how to keep my buffers organized. When I’m working on project x, I don’t want to see project y buffers. I’m sure there are many plugins for that too, but the state gets corrupted over time and stuff I use quits working.

I much prefer separate instances for separate work, and nvim or vim start from scratch faster than an emacsclient connects.

Re:Emacs Rocks by kwhitefoot on Wednesday December 05, 2018 @11:31AM (#18609760)
But why close it? I never close Emacs.
Re:Emacs Rocks by FPGAhacker on Wednesday December 05, 2018 @07:50PM (#18614345)
I guess I use it differently than you. It’s common for me to get emacs+plugins into an unstable state.
Re:Emacs Rocks by pmoriarty on Wednesday December 05, 2018 @03:23PM (#18612140)
Sadly, undo-tree is infamous for losing undo history. It's a wonderful package otherwise. Pity it hasn't been maintained in such a long time.
Re:Emacs Rocks by catacombs on Wednesday December 05, 2018 @09:12AM (#18608290)
Give Emacs another go with Doom: https://github.com/hlissner/doom-emacs
Re:Emacs Rocks by tarboreus on Wednesday December 05, 2018 @10:22AM (#18608971)
The undo in Emacs is great, it's impossible to lose anything because you can undo your undos. I wouldn't start off doing serious work with it, though. Switch gradually and you can avoid these situations by looking stuff up in the moment. Pick a side project to start out with, not your main gig. And if you're a VI user, go with Spacemacs or at least use Evil.
Re:Emacs Rocks by pmoriarty on Wednesday December 05, 2018 @03:25PM (#18612153)
It's very possible to lose your undo history if you use undo-tree. It's happened to me a bunch of times, and undo-tree is infamous for this.

Sticking to vanilla Emacs undo is supposed to be more reliable.

Re:Emacs Rocks by accnumnplus1 on Wednesday December 05, 2018 @09:34AM (#18608487)
(Curious vim user here) Did you find any occasions where emacs was preferable to vim?
Re:Emacs Rocks by knewter on Wednesday December 05, 2018 @11:20AM (#18609632)
vim zealot who's been using emacs lately:

pros: - magit. unbelievable. - org mode. vimwiki pales in comparison - best vim emulation I've used - impressive operating system :) - configuration is awesome. doing literate org mode configuration with org babel. - lisp is cool.

cons: - haven't gotten comfortable dealing with "projects" yet, navigating files feels awkward. - doesn't feel quite as good as an editor as vim, but better than anything else out there. - no flutter mode - elm integration not quite as nice as I'd like

it feels like I'll get over the cons.

Re:Emacs Rocks by pmoriarty on Wednesday December 05, 2018 @03:38PM (#18612274)
"navigating files feels awkward"

What makes navigating files in vim so much better?

Vim was my primary editor for decades, but I was never particularly impressed with its file-navigation plugins, and mostly used the shell for file navigation. Emacs is really no worse in this regard, from what I can see. It has packages which are clones of or similar to vim plugins like NerdTree and the like (which I don't like myself and don't use, but they're there if that's your thing), and it has a bunch of other ways to navigate files -- like doing so from the minibuffer using counsel-find-file, or from dired, or from within a shell running inside Emacs, etc.

"doesn't feel quite as good as an editor as vim"

In what way? Have you tried evil? It makes Emacs 90% like vim, in my experience, and I rarely miss anything from the vim world myself (though, honestly, there are a handful of things that would be nice to have.. but not nearly enough for me to contemplate switching back to vim).

Re:Emacs Rocks by euler_ on Wednesday December 05, 2018 @01:23PM (#18610946)
Evil mode.
Re:Emacs Rocks by tobiaswk on Wednesday December 05, 2018 @09:40AM (#18608535)
You should try Spacemacs; best of both worlds. It's amazing.