4 ms·
Professor Moriarty, a couple of questions: Is this switch because you've moved on to LISPs? Doesn't startup time and lag of emacs (compared to vim) bother you
by ducktective 4y ago
Professor Moriarty, a couple of questions:
Is this switch because you've moved on to LISPs?
Doesn't startup time and lag of emacs (compared to vim) bother you?
- pmoriarty 4y agoThe startup time of Emacs is not an issue because I only start the Emacs server once and keep it running for a long time, connecting the Emacs client to it as needed. Once the Emacs server is running then connecting to it is as fast or faster than starting vim from scratch. Even restarting Emacs from scratch can be effectively instant, if you don't have a giant config like I do. Vim startup time can be slow too, by the way, if you have a lot of plugins. So, effectively, vim and Emacs don't differ on startup time these days like they used to. As to your question about Lisp, it definitely was a huge draw to Emacs because I fell in love with Lisp and almost the entire ecosystem of Emacs is written in Lisp... and I'd certainly much rather program in Lisp than vimscript, or even Python (or any of the other more mainstream languages). I remember coming across various things I wanted to do in vim that were pretty awkward to do because of how clunky vim and vimscript were. Lisp and Emacs just made doing what I needed much easier overall (though some things were still easier in vim.. for example, vim has some powerful features in its regex engine that don't exist in Emacs, even when using Evil). This was before neovim, so maybe it's better there, though since both vim and neovim lack Emacs' Lisp ecosystem, I doubt they'll ever be able to match Emacs in this respect. There were a lot of other reasons for the switch to Emacs, like having deep web browser and shell integration, being able to read my email from within Emacs, and do a ton of other things from it.. org-mode was another draw.
- ducktective 4y agoWhile you were using vim, did you use tilling window managers? Did you use a dmenu-driven workflow that calls bash scripts and unix utilities? When people talk about "composability" and "integration" of EMACS, it strikes to me that, vim+i3+unix setup is essentially the same. Just instead of LISP, bash/python is the glue language.
- joeman1000 4y agoBut why use so many monolithic tools that don’t want to talk to each other? Why ‘glue’ stuff together? Shouldn’t the underlying system take care of that? That is the appeal of emacs, to me. I don’t have to work hard for uniformity. I implement something once (a theme change, for instance) and it’s reflected everywhere. I want to change the font in emacs? Easy, one line in my config. I want to change the font for all of my programs on my Unix system… far out.
- striking 4y agoYeah, but when everything lives inside the same Lisp environment, there is no need for glue. You have variables and functions, all with built in documentation, that are easily composed. Vim, on the other hand, appears to conspire against the user's attempts to build reusable configurations. One plugin may require Neovim. Another may require the Python runtime to be configured and installed. Vanishingly few of them have built in keybinds, and those that do are not guaranteed to be harmonious with other plugins. And besides, should I write my config in vimscript or Lua? It might sound like I'm picking nits, but I don't find it coincidental that the best configurations that people have managed to build have been upon the strong bones that Emacs provides. Doom Emacs (https://github.com/doomemacs/doomemacs https://github.com/doomemacs/doomemacs) is best-in-class, providing harmony between all of the built in modules and their bindings. I uncomment a line in a config file and get full Python support, with refactoring and formatting and such, ootb. This ends up being true for a shockingly long list of languages and tools. On the Vim side you have https://github.com/NvChad/NvChad https://github.com/NvChad/NvChad which appears to no longer be accepting new plugins and https://github.com/LunarVim/LunarVim https://github.com/LunarVim/LunarVim which appears to provide a really good programming experience but is limited in scope to a handful of core plugins and whichever LSP servers they can get their hands on. I used to use Neovim and compose everything together by hand as well. I don't see why I should bother today when Doom Emacs provides the same experience I would have built for myself, out of the box.
- karthink 4y agoThe start up time of emacs isn't slow if you know what you're doing. I have a 14,000 line init.el and about 355,000 lines of code across ~150 installed packages. Emacs starts in 0.2-0.3 seconds. Not instant but practically there's no difference. The downside of autoloading (lazy loading) all libraries is that there's a hitch when I first open a "heavy" elisp library. A PDF, an org mode document or something that launches an LSP server, say. But if I launch emacs to edit a bash script or a config file the speed is indistinguishable from vim.
- trey-jones 4y agoAgreed, and use-package is a big reason for this. New users, take heed and use-package from the start. Regarding the topic of using both Vim and Emacs, I do, but switching from one to the other can really mess me up. I would prefer to just use one, generally, and use TRAMP instead of Vim when possible for editing server configs and such. I have considered using EVIL mode, but I am wary of losing touch with default Emacs, as it's something that comes up from time to time as well.
- NateEag 4y agoWorth noting that you can replace evil-mode's insert-state with its emacs-state, thereby getting conventional Emacs keybindings when you're typing. That's how I have it configured.
- pmoriarty 4y ago"I have considered using EVIL mode, but I am wary of losing touch with default Emacs, as it's something that comes up from time to time as well" You're basically giving up almost everything that makes Emacs great: its ecosystem. Bare-bones, default, vanilla Emacs, without any packages or configuration is woefully underpowered compared to Emacs or vim with lots of packages and configuration. I hate to use either in their default states, and would have never switched to Emacs if I wasn't able to use Evil.
- trey-jones 4y ago
- outworlder 4y agoTry Doom Emacs (either to use it long term or to steal its approach). Starts in under one second for me.