Why Emacs is great - SLIME repl for developing in-browser javascript
github.com
github.com
I've just discovered pabbrev-mode for js and ruby editing. It's off the hook.
Also once you've coded with a repl in an inferior shell buffer, you won't know how you ever did without it
pabbrev rocks! The fact that you can just add that sort of functionality to Emacs is telling.
In that sense, you could say I never did switch to Emacs, since I never really got fluent in the default key bindings for basic editing in Emacs (always use the vim/Viper ones). So when I'm in an unfamiliar environment that doesn't have my personalizations, I still load up vi or vim before Emacs. :)
---
There's a reason why vim has support for multiple buffers. That you can keep multiple files open simultaneously. Read about vim remoting, and you can use a single gvim instance (which offers better performance and font rendering), and edit all files in just that.
Even in emacs, buffers are everything. Nobody opens a new instance of emacs for each file.
To sum up, nobody sane opens a new Emacs for each file. VISUAL=emacsclient is your friend, as are Dired and M-x compile....
This is true. I think the typical approach with Emacs is to leave 1 instance open for a long period of time and just keep coming back to it. (This is what I do, anyway.) I don't think this is any worse in general than opening and closing the editor as needed, it's just different. Especially when you consider that you can run terminals/shells within Emacs, it's a completely inside-out workflow. Instead of:
1. do a bunch of stuff at the terminal
2. need to edit a file
3. open my editor
Once you've gotten to step 2 you're already in your editor!
I run up an emacs server on startup and use emacs client to connect to it. It gives me the instant on of VI, plus the power of all the plugins and tweaks I've made to my emacs config.
These days, most coders using vim or gvim have a pretty large config setup which takes as long as emacs to startup anyway.
If vim had a SLIME like frontend I may not have switched in the first place, but now that I know emacs I don't think I would go back to full-time vim.
Vim is still great for quick change editing due to it's awesome load time and superior default keybindings.
Do you know if that has changed, or if maybe I'm missing some easy .emacs magic to make it work?
Not sure what the status of js2-mode is right now.
You can steal the hooks at the bottom of the file to use the indentation of espresso mode. This was driving me insane too.
Thanks to mitchellh for publishing his dotfile :D
http://www.emacswiki.org/emacs/FlymakeJavaScript
The combo of espresso-mode and flymake is like The Good Parts of js2-mode. Now once I add this in to the mix...