Live data from Hacker News

Emacs 27.2

lists.gnu.org

61–70 of 115 posts

Re: Emacs 27.2

#61

Not to start a holy war, but what are the advantages of emacs over vim these days? I'm considering switching to emacs just to have learned both.

NOTE: This is advice for programmers: if you're not a coder, it won't make any sense for you.

If you are a programmer, though, and you're going to learn Emacs, learn it along with Emacs Lisp and Elisp development tools.

One definite advantage of doing that is experiencing the "plugin" development environment done right. If you ever scripted Vim, or any other program other than the web browser, you're in for a fun ride. really The "plugins" in Emacs are, surprisingly, full-blown programs. When writing them, you can evaluate any part of the code and see the results immediately. You have access to a source-level debugger and two profilers out of the box. Every function you use is documented, and accessing that documentation is trivial. You can "go to definition" of any variable and function, including primitives written in C (if you compiled Emacs yourself and have the sources on disk). You can modify, extend, or override any function anywhere with advices. The language itself is also interesting: it's multi-paradigm. You can write code in procedural, functional, and OOP styles. The OOP implementation is based on generic functions and multimethods/multiple dispatch - unless you worked with Clojure or Julia, you're unlikely to have encountered that before. The quote/unquote-based macros are powerful, and even if you don't use them, you can benefit from them, for example, by using a library providing pattern-matching/destructuring (like pcase or -let).

And you get all of that just for writing plugins for an editor. Let that sink in. The tooling and language, which, though a bit clunky sometimes, rivals professional IDEs and languages like Kotlin, just for writing extensions. Seeing all of this after trying - and failing - to write a simple Vim plugin with VimL and Lua was a mind-blowing experience.

It's also an advantage - to get back to your question - which explains the massive amount of Elisp programs and plugins out there. Well worth experiencing.

Re: Emacs 27.2

#62

Earlier quoted context omitted.

Tramp works a lot more reliably if you customize where Emacs puts your backups and autosaves, such that they're stored locally instead of remotely. The Emacs wiki has details on how to do that: https://www.emacswiki.org/emacs/BackupDirectory

The biggest problem I have with Tramp performance is much deeper, the need to open a new connection for every request - it makes integrating other modes with Tramp much more difficult than I would hope for (e.g. I tried to make kubernetes-mode work over tramp, and it mostly did, but each refresh had to reconnect, which would freeze the whole Emacs GUI for a second or so; thankfully kubel-mode has a more complete impl…

You still have this problem even with a control master setup with ssh?

Re: Emacs 27.2

#63

Earlier quoted context omitted.

Tramp works a lot more reliably if you customize where Emacs puts your backups and autosaves, such that they're stored locally instead of remotely. The Emacs wiki has details on how to do that: https://www.emacswiki.org/emacs/BackupDirectory

The biggest problem I have with Tramp performance is much deeper, the need to open a new connection for every request - it makes integrating other modes with Tramp much more difficult than I would hope for (e.g. I tried to make kubernetes-mode work over tramp, and it mostly did, but each refresh had to reconnect, which would freeze the whole Emacs GUI for a second or so; thankfully kubel-mode has a more complete impl…

This was problematic even with SSH multiplexing?

Re: Emacs 27.2

#64

Anyone running the jit Emacs? Can't wait for it. I did try compiling it from source for my linux setup. Would love to see it on windows.

> Anyone running the jit Emacs? I'm running the "native-comp" (libgccjit) branch daily since months and months now: not a single problem here and I've got quite a "heavy" config (thousands of lines of custom config and all the usual suspects: magit / org-mode / lsp / cider etc.). > I did try compiling it from source for my linux setup. And it worked? Worked on the first try for me (on the Debian distro). I was someho…

I found an easy installer for native-comp (for mac os). https://github.com/d12frosted/homebrew-emacs-plus I'm new to emacs and so I am unaware how much faster it is or isn't.

Re: Emacs 27.2

#65
post #21

I've used Emacs for almost 5 years now and it has served me well. In the beginning it was frustrating and confusing, but now that I understand it, it's the way I naturally interact with code on my computer. The fact that so many gnu tools have movement similar to Emacs means that I can quickly become more effective in them. The fact that my work Macbook allows me to do some rudimentary movement with C-a, C-e, C-f, C-…

I'm curious what sort of performance you are hit by. For me, it is mainly org source buffers that I did not flag as async. That and tramp not working too well over crappy internet. :(

I work in the medical field, which requires me to view large xml files and multi patient csv files with years of patient history. The CSVs contain embedded pdf strings that are long strings of bytes in the file. Emacs struggles to copy and paste, and move around in the large CSVs.

For the large XML files, I have to switch to fundamental mode, because it struggles to highlight everything, and sometimes the xmls are pure ass and are basically all on one line. I've written a python script that will prettify the xml because emacs locks up when I try to do that. My colleagues just tell me to use sublime text.

Re: Emacs 27.2

#66
post #41
post #35

Earlier quoted context omitted.

Alan Third (the NS maintainer) said on reddit that "It's too big and invasive a change for Emacs 27."[1] [1]: https://old.reddit.com/r/emacs/comments/mc82yk/flickering_em...

Too bad. I wish they could just stop breaking things.

It's fixed on HEAD if you don't care about running from trunk. Otherwise, I suggest you to use Mitsuharu Yamamoto's Mac Port: https://bitbucket.org/mituharu/emacs-mac

Re: Emacs 27.2

#67
post #21

Earlier quoted context omitted.

I'm curious what sort of performance you are hit by. For me, it is mainly org source buffers that I did not flag as async. That and tramp not working too well over crappy internet. :(

I work in the medical field, which requires me to view large xml files and multi patient csv files with years of patient history. The CSVs contain embedded pdf strings that are long strings of bytes in the file. Emacs struggles to copy and paste, and move around in the large CSVs. For the large XML files, I have to switch to fundamental mode, because it struggles to highlight everything, and sometimes the xmls are pu…

Ah, yes. Long lines are known bad. I will be excited to see anyone give a way to fix that with minimal impact on the rest of the system.

I'm curious why other editors don't trip as badly on long lines.

Re: Emacs 27.2

#68
I tried Emacs after reading so much about it lately...but I don’t understand how people use it. The sheer volume of key combinations always in play to do things makes my hands hurt.

It made me see the appeal of some of those concave keyboards.

Re: Emacs 27.2

#69
post #51

I've used Emacs for almost 5 years now and it has served me well. In the beginning it was frustrating and confusing, but now that I understand it, it's the way I naturally interact with code on my computer. The fact that so many gnu tools have movement similar to Emacs means that I can quickly become more effective in them. The fact that my work Macbook allows me to do some rudimentary movement with C-a, C-e, C-f, C-…

Going on 25 years with Emacs. Lots of other things I've changed over the years, but still happy with Emacs and Postgres.

I wish to use Emacs, but those keyboard shortcuts do not make any sense for me.

Is there a way to have emacs with custom shortcuts as a ready package where I can modify those shortcuts before digging in with all the rest.

I do not mind keyboard shortcuts in gneeral and use them all the time, it's just those in Emacs are hard to learn/remember knowing that I wish to change them anyway .

I am looking for the way to set those by myself but it seems I need to learn a lot before I can do it and thus it blocks me from moving forward with exploring Emacs deeper.

Re: Emacs 27.2

#70

I've used Emacs for almost 5 years now and it has served me well. In the beginning it was frustrating and confusing, but now that I understand it, it's the way I naturally interact with code on my computer. The fact that so many gnu tools have movement similar to Emacs means that I can quickly become more effective in them. The fact that my work Macbook allows me to do some rudimentary movement with C-a, C-e, C-f, C-…

I use pre-release Emacs with the nativecomp branch ("gccemacs") and Doom. Starts in 2.1 seconds and it's blazing fast. Definitely the best thing to come to Emacs for me in a long time, very exciting. I can't wait for it to hit release so everybody can play with it!

are binaries available somewhere, i tried compiling it about year ago but quit after struggling with few dependencies.
Post reply on HN