Live data from Hacker News

Batteries included with Emacs (2020)

karthinks.com

211–220 of 228 posts

Re: Batteries included with Emacs (2020)

#211
post #165
post #117

Earlier quoted context omitted.

Somehow, Microsoft managed to invent LSP for VSCode and then abandon some parts of it just a couple of years later -- e.g. python language server is dead, pylance is there instead, closed source, VSCode-specific and with prohibitive license. Most language plugins in VSCode don't use LSP anymore IIRC.

While it may be true that pylance is closed source and vscode specific, pyright[1] is MIT. Pylance does appear to still be a language server as well. As far as I know, most language plugins still use LSP, including Typescript/Javascript, Rust, and Go. [1] https://github.com/microsoft/pyright

pyright only does typing and nothing else. You'd have to combine it with another python LSP for syntax and linting.

Re: Batteries included with Emacs (2020)

#212

Earlier quoted context omitted.

I mean. Emacs has the ability to do basically what vim does. Evil mode is really nice (though I can never get used the = register evaluating elisp instead of vimscript). What kills me about emacs is the startup time. Breaks my flow when I'm jumping around and need to edit something quickly. Though I'll admit that doom provides a very nice environment for when I want to play around with some lisp.

I use vanilla Emacs with 145 packages and my startup time is 0.9 sec on a 6 y/o thinkpad. With deferred evaluation, there is no need to use a daemon.

Is your initial hosted anywhere? I'm interested in how you implement that.

Re: Batteries included with Emacs (2020)

#213

Earlier quoted context omitted.

I had a very similar experience, but I started with plain Emacs, and little by little adding what I needed. I was afraid of getting something really bloated, or not understanding how it all bundles together. I think it has paid off a bit, but the learning curve has been steep.

IMO that's the proper way to learn Emacs. Doom seemed right to me at the time because I just wanted to uncomment `;; org` in `init.el` , not learn a lot of keybindings and get started. I think I'll start an "Emacs from scratch" someday too.

Why didn't you just start with the arrow, backspace, and delete keys?

Re: Batteries included with Emacs (2020)

#214

Earlier quoted context omitted.

I use vanilla Emacs with 145 packages and my startup time is 0.9 sec on a 6 y/o thinkpad. With deferred evaluation, there is no need to use a daemon.

Is your initial hosted anywhere? I'm interested in how you implement that.

No, the configuration is private. At this point, many of the tricks are well known, so you probably don't need to see my config to get a fast emacs. Here is a great starting point: https://www.reddit.com/r/emacs/comments/f3ed3r/comment/fhicv...

The maintainer of Doom responded with a good list of improvements that he uses in his distribution to achieve fast startup. If you transplant all of them into your configuration, your startup time would probably be 1-2 sec.

Re: Batteries included with Emacs (2020)

#215

Earlier quoted context omitted.

IMO that's the proper way to learn Emacs. Doom seemed right to me at the time because I just wanted to uncomment `;; org` in `init.el` , not learn a lot of keybindings and get started. I think I'll start an "Emacs from scratch" someday too.

Why didn't you just start with the arrow, backspace, and delete keys?

Sorry, don't get your point. What do arrow, backspace, and delete have to do with wanting to use Vim's keybindings on Emacs?

Re: Batteries included with Emacs (2020)

#216

Earlier quoted context omitted.

All these friendly gooey things want to help you by popping up this kind of stuff. But luckily, some of them let you turn it off. I've told IntelliJ and Eclipse and VSCode to please stop popping up suggestions, and let me type Ctrl+space to summon them. Aaaah. Much better.

Drives me crazy that these types of programs always want to fill in the closing bracket for you. Like, as soon as you type an opening bracket, it sticks a closing bracket there. Completely interrupts my train of thought, why would I want the editor to assume it knows what I want and write things for me? Maddening. Especially something that messes with my internal thought process around the syntax "tree" that I'm tryi…

Very interesting. People are different. While I don't like this auto-complete popups, I do like the auto-pairing of quotes and parentheses and brackets of various kinds. Once you know that your editor does it, it's easy to predict and so I'm happy about having to type less.

(But getting out of the auto-paired thing could be improved. In IntelliJ, when entering Java code, I usually type cmd-shift-return to complete the statement, and that does what I want. It does different things in different situations, but it's easy to predict what it does.)

Re: Batteries included with Emacs (2020)

#218

Earlier quoted context omitted.

That sort of blows my mind. How can you not learn to touch type? It will take you a month at most and it greatly improves life at a keyboard.

> It will take you a month at most I always gave up after about a week, I've tried it twice or three times during the last 25 years. Like always, good (fast) enough beats perfection. And I'm a mathematician and programmer because I'm lazy :D

It’s just, I never considered so many people types this way and it’s one of those things that is hard to imagine doing when being used to something after 30 years (I’m 41, been typing since I was like 10 or 11), but I appreciate the logic in getting good enough.

Re: Batteries included with Emacs (2020)

#219
post #172

Earlier quoted context omitted.

"public nuisances like vim" Others here seem to have taken this as tongue-in-cheek. On the first read I took it as "I think vim is ridiculous". I'm honestly curious to know which it is (or if both are inaccurate).

Of course it's tongue in cheek. Vim is venerable high quality software that a lot of people love. Emacs people dunking on vim (and vice versa) is just an old traditional joke with no actual animus behind it.

I'm well aware of the decades long "feud" between emacs users and vi/vim users. But that isn't always just harmless joking around either - there are people in both camps that can be quite nasty about it.

At any rate I didn't read your comment as being "and emacs user dunking on vim" (you mentioned emacs in a list of editors, but it wasn't obvious that you were coming from the emacs camp). A lot of people scoff at vim because it works so much differently than anything else they've used before (mostly due to modal editing). I guess that was the vibe I got from my first reading of your comment, but I'll just chaulk that up to there being no "tone of voice" when reading text.

Personally I am in both camps - I use both editors. and like both of them for different reasons.

Re: Batteries included with Emacs (2020)

#220
post #174

Earlier quoted context omitted.

I think JetBrains has a great system to it. cmd+shift+a opens a command palette with every possible command in the IDE. It matches as you type the name of an action, and every action has a keybinding shown to the right (if it exists). Every relevant button generally has keyboard shortcuts right on them. And pressing cmd+e opens a list of gui interactions you've made so you can repeat them (things like focusing buffer…

shift-shift brings up the same window, albeit with different prompts.

Shift shift is go to anywhere with fuzzy matching. But yeah, it's the same window, the command palette is in a tab on that.
Post reply on HN