Hacker News new | ask | show | jobs
by carapat_virulat 3352 days ago
I don't think there is. I've been trying to move from vim to Emacs for a few weeks unsuccessfully, mostly for org-mode and all the agenda stuff. I still use emacs for org-mode but I don't feel comfortable using it for normal code editing.

I am using evil mode, Helm, Projectile and Jedi for completion, and even though everything is more or less configured and took me around 300 lines of elisp I still find all the time defaults that are completely different to vim and I'll have to fix at some point and I am not sure how much time and code it will take to make it feel comfortable. Just a few problems from the top of my head:

- evil-mode "u" to undo changes sometimes works and sometimes does crazy stuff. I think it has something to do with incompatible modes, specially org-mode.

- Tab doesn't work, I'll have to investigate how to make it work properly.

- The defaults for Projectile for opening files inside a project look and feel horrible, it's configurable but I'll have to investigate and probably spend a few hours writing elisp until I have it working to my taste.

- Things like ":set nowrap" don't seem to work in evil-mode, I'll have to investigate how to do the same in emacs.

- The completion is kind of weird and it appears automatically instead of using a key to activate it. Again it's configurable, but I'll have to spend a bunch of time getting it to work as I want.

- If you do ":e path/to/file" and then you try to open another file from inside emacs using ":e [TAB]" it will work as if you changed to "path/to" instead of the original directory.

And this is just from the top of my head without having used it for a few weeks now as I don't have the time to configure all that stuff. I'd say that evil-mode is not transparent enough to make the change simple.

2 comments

Off the top of my head:

Tab doesn't work, I'll have to investigate how to make it work properly.

You mean for auto-complete? I think I had to do this under dotspacemacs/user-config:

  (define-key evil-insert-state-map (kbd "<C-tab>") 'hippie-expand)
Things like ":set nowrap" don't seem to work in evil-mode, I'll have to investigate how to do the same in emacs.

This worked for me, also under dotspacemacs/user-config:

  (spacemacs/toggle-truncate-lines-on)
  (add-hook 'text-mode-hook 'spacemacs/toggle-visual-line-navigation-on)
Edit: Wow, sorry, answered the wrong question. The above will enable wrapping. I'll leave it up for anyone who wants it. For me, nowrap seemed to be on by default and it drove me crazy.

After 15 years of vim, it took me a few weeks before I was using Spacemacs more often, but now I only use vim for quick changes when I'm sshed into a server. Took a lot of googling and yak shaving, but so far I'm happy and getting more productive with time. Good luck with the other issues.

You're touching on some of the same painpoints I encountered, though I don't know what Jedi is.

My impression is, we might both benefit from starting from a bare-bones Emacs setup and expanding that by hand.

I guess vanilla Emacs would be the most bare-bones experience, or at least the most bare-bones experience you can find help for on Google (which kinda hurts me to say, but DDG has worthless search results and only sticks in my browsers because of the !bang functionality).