Live data from Hacker News

Making Emacs Popular Again

lwn.net

701–710 of 782 posts

Re: Making Emacs Popular Again

#701
One thing I've noticed is that I'm using not only Emacs but other editors, I really like Org-mode for notes and cider-mode for Clojure but I find myself switching to other editors including vim and VS Code when doing other tasks.

Perhaps something like Spacemacs but built around CUA-mode with a nice default theme and menus will win people to the platform.

Re: Making Emacs Popular Again

#702

Earlier quoted context omitted.

New employee 3 workflow at company X: 1. Install Emacs 2. Sync existing config via git 3. Work New employee 4 workflow at company X: 1. Install Emacs 2. Spend 2 hours learning default Emacs 3. Work New employee 5 workflow at company X: 1. Install Emacs 2. Spend 1 - 2 hours learning default Emacs 3. Spend 2 - 4 hours googling interesting Emacs packages, in each case going to their GitHub repo to read the directions, a…

You forgot new employee 0: 1. Install Emacs 2. Finds magit 3. Questions reality before swimming in new found joy

Magit is so good that it should be shipped by default into Emacs.

Alas the process of integrating any outside code into Emacs is tangled behind three layers of bulletproof glass.

I'm not against the glass, as it's a good defence against hostile thieves, but it sure kills any desire to merge outside code

Re: Making Emacs Popular Again

#703

Earlier quoted context omitted.

> For years I've wanted to be able to drop to a shell in vim and visually cut/paste the window. NeoVim is 100% compatible and has a pretty decent terminal buffer with full (read-only) Vim controls. Nowadays I prefer running it in a terminal multiplexer though. Emacs' terminal mode doesn't have ncurses support which leads to pretty much all interactive terminal applications to break.

There are a few shell modes in Emacs. I think ansi-term might do what you want for a full screen interactive terminal application.

I tried all 3 terminals I could find and none works. Apparently they all use the same ancient base that was developed before interactive terminal UIs were a thing.

Re: Making Emacs Popular Again

#704

Earlier quoted context omitted.

We agree completely. Neither Emacs users nor developers care about start-up time or size on disk. And that's why Vim is installed by default on Linux distros (and macOS and WSL) and Emacs isn't. And that's partly why people learn Vim before they learn Emacs.

Not quite. vim is installed because vi is required by the POSIX standard and vim is the GNU version of vi. For the same reason, ed is still installed by default. It has nothing to do with popularity.

Vim isn't a GNU project and is licensed under it's own GPL-compatible license (see: :h license)

Re: Making Emacs Popular Again

#705
post #313
post #255

Earlier quoted context omitted.

honestly, with lsp-mode, it's pretty dang close to vscode, at least for the languages I care about. and the benefits of evil + a fully configurable editor are too much to pass up. a drop-in replacement for newcomers? no way. but if a powerful environment is valuable for you, like say if you spend a lot of time in an IDE and the shell, emacs's ability to integrate those things and a lot more is too good to pass up.

I found lsp-mode to be quite cool (recently reformatted my machine, and so decided to modernize). lsp-ui + company mode kills the input latency on any 4k display on Ubuntu tho. Input latency is now VS-Code/Atom level slow. Unbearable. Even with delay set to 0

This is much, much better on Emacs 27 with native json parsing. Once the language server is fully loaded (which can take a little while sometimes), input lag becomes insignificant again. Strongly recommend upgrading.

Re: Making Emacs Popular Again

#706

Earlier quoted context omitted.

Emacs is a gui app. You can have if you like a tool bar. A menu-bar, tabs, split windows. If you want something slightly more like a traditional gui emacs application framework enables bidirectional communication with QT applications running in emacs frames. Personally I use it to render HTML mail inside emacs with what amounts to embedded chrome.

Emacs is as much of an GUI-App as Window notepad is an editor. They both have the traits what justify to call them, but also are both on the absolute bottom-line in terms of ability. The menubar is stuck in the 90s, the toolbar very very basic, even for the 90s. Window-Splitting is not even an GUI-feature and very basic. Only the tabs are somewhat modern, but also simple. COmpared to a modern GUI, emacs has barely an…

Windows splitting is actually quite sophisticated you can split horizontally or vertically and split successive sections of the screen. You can balance windows in one dimension or by area. You can do this automatically as you create or destroy windows if you like.

You can have new splits inherit the file you are already editing or show a blank buffer. Further closing a split doesn't kill the buffer or make you decide at that point whether to save a buffer it just destroys the view not the thing.

Native tabs interact with splits in one of two ways. Either as an array of window arrangements at top of window or an array of buffers within a particular split.

You can manually resize a split with the mouse and in fact you can create them via the file menu which also shows the key binding to activate the functionality beside the option ensuring that the 2nd through 10 millionth time you need the functionality you can just press a few buttons.

It's not opening external apps like clicking a link in your email and having your regular web browser open the url its creating a pyqt app within the space of your emacs/tab/split that you can interact with via elisp

https://github.com/manateelazycat/emacs-application-framewor...

Re: Making Emacs Popular Again

#707
post #443

Earlier quoted context omitted.

Neovim is an editor with macro capabilities, which can be programmed in LuaJIT. It's my terminal editor of choice, and yes, arrow keys work. But why would you want to use them?

I've been using vim for 15 years so I know neovim. But ... can you make changes in neovim while it's running? Let me take it a step further. Imagine a text editor in which you can, while it's running, literally go into its source code and make changes and that those changes immediately take effect. If I'm not mistaken you can do that in emacs. That's what I find intriguing about it, not the text editor.

I believe so, yes.

Neovim is less programmable than Emacs insofar as more of it is written in C, it's substantially less documented, and Emacs has a substantial head start.

But yeah, still fundamentally a programmable text editor. If you wanted to set up a file watcher over source code that automatically reloads it when files change, there's nothing stopping you.

It's true that nothing other than Emacs is quite like Emacs. Neovim is evolving in the right direction though.

Re: Making Emacs Popular Again

#708

Earlier quoted context omitted.

Not quite. vim is installed because vi is required by the POSIX standard and vim is the GNU version of vi. For the same reason, ed is still installed by default. It has nothing to do with popularity.

Vim isn't a GNU project and is licensed under it's own GPL-compatible license (see: :h license )

Good correction. The most common GPL licensed vi clone, then.

Re: Making Emacs Popular Again

#709
post #543

Earlier quoted context omitted.

1. Install Spacemacs. 2. Observe a flurry of errors every time you start emacs. Ignore and hope it works because no idea how to fix any of it. 3. Find, among a million others, the command that seems to do what exactly what you want. Command gives an error. Dunno how to debug. 4. Watch emacs features that should work ootb not work because spacemacs or evil or one of the three bazillion packages did something that brok…

This. While Spacemacs is an admirable effort, I think it misses the point: Emacs is an editor for power users from another era, so it requires huge effort by the user to become truly productive by todays standards. Trying to create layers upon layers of "friendlines" and eye candy is not going to solve the complexity. I've always said that it's better to grasp Emacs with a vanilla config or a small starter kit and se…

> vim is a similar rabbit hole, maybe less deep.

Vim was for a long time and still pretty much is mostly a text editor. It is light, work well with large files and is installed on most Unix machines. I don't think trying to turn it into an IDE makes much sense but if you want to develop with it, installing a language server client takes two minutes and you don't need much more.

As a text editor, Vim is really nice. Modal editing can be very pleasant if it clicks with you.

Re: Making Emacs Popular Again

#710
post #439

Earlier quoted context omitted.

I actually like this viewpoint because I have done both and generally I disagree with you. But here's my take. I use VSCode often because its "just easier". The extensions are at best (in my opinion) ok approximations to what I can get with emacs. Especially for a language I'm inexperienced with in emacs VSCode is a nice integration layer while I adjust my configuration. Emacs (and to that point vim) is vastly superi…

Everywhere in this thread I see vague and generic statements like this. Do you have concrete examples of specific things in your 10 year old Emacs configuration you "labored over" that can do something VSCode (and its extensions) can't and which makes Emacs "vastly superior"? If so please share, otherwise don't bother. We have already heard all this vague nonsense for years.

There are loads of examples in the comments here. Have you read them?
Post reply on HN