148 points · by unsignedint · 10y ago · 120 comments
For those that haven't used it, it's a carefully designed and polished Emacs kit based around Evil mode (the vi emulation layer).
Pretty simple and doesn't rely on heresy such as evil mode.
But one thing that's annoying the hell out of me is window/buffer management. It really confuses me when plugins 'eat' a buffer to display something.
Spacemacs is, as the tagline says, FOCUSED ON EVIL.
As a vim user, I'm also used to my editor starting up instantly. Spacemacs takes so long to load that it's laughable. And since GNU emacs is single-threaded, the whole UI is completely locked while it processes the massive amount of configuration needed to make spacemacs what it is. The only thing "better" about that is that it gives you an opportunity to take a coffee break. I'm reminded of the "code's compiling" XKCD: boss says, "hey! quit horsing around!", worker says "spacemacs is loading!" And this is with 8GB of RAM, 8 processor cores clocked at 3.2 GHz, and filesystem on an SSD drive.
And then you run into problems with many packages from MELPA. If some third-party package introduces its own keybindings, then you still wind up with odd emacs-style keybindings here and there, rather than Vim-style ones. Furthermore, Vim's leader key is backslash, not space, regardless of how you like to configure it.
So, what's "better" about it? The fact that it's got a "pretty" powerline statusline by default? The fact that it uses some dark colorscheme by default? That's not enough for me to abandon vim.
If you're an adherent of the holy church thinking of turning evil, then it will obviously take some relearning, but it's incredibly discoverable, making exensive use of hierarchical mnemonics and helm after each keypress to know what commands are available to you.
e.g. space-f-s is file->save, space-f-f is file->find, space-f-r is file->recent etc.
It does support a non-evil mode, and asks which way you want the first time you run it.
Since there is no good in VIM (besides being pre-installed on every *nix platform), you know what that equation leads to... just emacs.
edit typo
Edit: fixed it. It turns out that was an ~/.emacs file present which prevents Spacemacs from starting. If you did the cloning and $ emacs results in your standard GNU emacs, look for the file ~/.emacs and remove it.
[0] http://git.savannah.gnu.org/cgit/emacs.git/tree/etc/NEWS?h=e...
'Emacs' is not a single line of editor which Stallman maintains. Emacs is a whole class of editors.
The OOB GNU experience is rather lack-luster. There's a ton of thing Emacs can do, but with the default preferences it doesn't. Some of these missing or bad defaults really feel odd.
It seems the official GNU mantra is "if people aren't forced to look for things to customize, they wont really ever discover all the things Emacs can do for them". Which is kinda true.
Basically, they want to encourage users to become "fully fluent Emacs-users", that is a person who can and will customize every part of the Emacs-experience. Which is a great goal! But the means used still puts a first-time novice user in a much more inferior-looking chair than he could have been put into.
The "solution" for this has often been Emacs starter-kits (like prelude), which provides lots of better defaults, not to mention a curated list of addons and packages, making the OOB experience much more friendly.
From here on it's probably all speculation, but a full starter-kit might leave the novice Emacs-user overwhelmed and incapable of customizing (he has no way to know what all the things the starter-kit sets or includes does, and why. He will not know what is Emacs and what comes from addons. Etc etc). IMO this can hurt the long-term prospect of the user actually becoming a fully fluent Emacs-user.
On the other-side, you have the GNU Stance where IMO they risk alienating people from becoming Emacs-users all together. And that's even worse.
I don't like to be all black and white and say "this side is the only way". There really should be a middle-ground somewhere, but it seems GNU is not willing to provide it. And that's really quite a shame.
That said, I feel like emacs could update a few defaults and include a few packages to create less setup time. Like shipping an official starter package (dnf install emacs-starter) so people can choose what they want.
For instance,
or CUA-mode.
I haven't tried any of these so can't speak to the experience, but the idea is that a custom layer for various users can be built on top and distributed to desired users (so it's almost out-of-the-box).
Spacemacs is also a good example targeting VIM users.
The UI feels pretty modern to me; it's when I use every other app that I feel crippled. That's not hyperbole, but fact.
It'd be wonderful if Firefox gave me the full set of emacs keybindings (not just a few) and a decent language to extend it.
It'd be wonderful if desktop environments let me converse with the computer via my keyboard, rather than pointing and grunting like an infant.
The main benefit of this is that you get to find the "something else" quickly using the full suite of normal search and movement commands. It's also nice that you can jump through the stack of past marks, not just one.
I suggest to try the conkeror web browser: http://conkeror.org/
Conkeror is configured entirely in JavaScript, though, not LISP.
I tried Emacs/Spacemacs and for example, there's no decent tabbed interface. I mean a real tabbed interface, at least as good as Vim's. The answers I got on this topic ranged from: "you're not going to need it" (how do you know what I need?) to "use this random package which kind of provides a limited subset of the tabbed interface UX" to "write it yourself" (...).
I use ido-switch-buffer instead of helm for quick switching. Should I switch to helm?
It's been ages since I was a vi user, and I never used tabs. I took a look at http://vim.wikia.com/wiki/Using_tab_pages, and it sounds like tabs are just what emacs would call windows, which have been there for decades at this point. I'm guessing that's not it, so … what is?
Does https://github.com/krisajenkins/evil-tabs not solve your problem?
Also, what is wrong with 'write it yourself'? You are presumably an intelligent human being; the whole point of free software is that you are free to do whatever you like with it. If there's a feature you want, implement it (or hire someone to do so)!
I'd like to offer a different explanation, which I think it much more truthful and reflects the Emacs way(tm).
In Emacs everything (and I mean everything) is represented by the same type of primitives: Buffers made out of text. Every interaction with such a text-buffer is represented as lisp-code implementing an Emacs mode.
This is the core of Emacs. Everything in Emacs must build on this. No exceptions. And that's incredibly powerful.
Because of these "limitations" it means everything (and I mean everything) in Emacs can be processed using the same primitives, the same functions and the same keys.
There's no magic buttons, or drop-down lists, or special UI elements exempt from this.
I can search/grep for text in any buffer. I can recursively grep for results in my grep-result buffer. I can navigate these search results, the same way I would navigate a code-document. I can enable spell-check in any mode I like (like Git commit-mode). Etc etc.
It also means that any customization I've done to any part of Emacs, I can apply to any third party extension as well. It means I can customize and interact with a extension which extends another extension. There's almost no limits to what you can do with these simple but powerful primitives.
And all that in a simple and uniform way. Everything at your finger-tips. Both as a Emacs-package developer and an Emacs-user.
Once you get used to it, it's really a captivating thing and everything else starts feeling wrong.
If you want to make a tabbed interface... How are you going to represent that using those primitives? How will that work?
How will you make sure you tab-line/row stays in place and is exempt from other rules which governs the current buffer and the Emacs mode it runs (not to mention the user-customized rules for this mode)?
I'm not saying it can't be done. I'm just saying it wouldn't be very Emacsy, and it's probably not a trivial thing to implement either. Especially when you consider that all your code also needs to work in a terminal. Emacs should be able to work 100% in a SSH session too, you know. At least for me, that's one of it's many selling points :)
So non-trivial and not very Emascy. That doesn't sound like anything which is going to get lots of developer-time. Neither core nor third-party.
Tabs can work in a terminal; Vim has them.
If I were an Emacs developer I wouldn't bother with tabs because we already have frames, but there's nothing non-Emacsy about tabs.
It can be done, it's just that there's no interest in the community or from the developers.
I can understand that, on the other hand such things make sure that a large number of people won't ever enter the Emacs community, for good or bad.
If you don't believe me about the popularity of the tabbed interface, I present:
- the addition of tabs to Vim
- the #1 feature request for Visual Studio Code, now implemented, tabs
There were some dirty hacks to fix that, but led to more problems with window & buffer switch ordering (and layouts for things like ediff)
May all be fixed now, this was years ago when I last played with it, but haven't really found the need for it, instead of ibuffer-mode, ido-everywhere, and smex. (Probably helm too if I can ever be bothered to set it up properly)
And if you create artificial barriers to entry, don't expect many people to stick around to enjoy the supposed benefits at the end of the rainbow.
This had been long resisted on the grounds that this feature could be used to link emacs with non-free code.
From the ChangeLog:
** Emacs can now load shared/dynamic libraries (modules).
A dynamic Emacs module is a shared library that provides additional
functionality for use in Emacs Lisp programs, just like a package
written in Emacs Lisp would. The functions 'load', 'require',
'load-file', etc. were extended to load such modules, as they do with
Emacs Lisp packages. The new variable 'module-file-suffix' holds the
system-dependent value of the file-name extension ('.so' on Posix
hosts) of the module files.The way to ensure that modules are GPL compatible is that they have to say that they are by exporting a symbol called "plugin_is_GPL_compatible"... and this is legally binding!
Like Lawrence Lessig said, "code is law".
That said, I do agree that just wanting to avoid non-free linked code is not productive. That ship sadly sailed and emacs seems to be losing ground to products that don't have this concern.