Although Vim is my editor of choice, I have tried to switch to Emacs using evil-mode. I’ve tried spacemacs in the past, but prefer having a simpler setup.
Installing emacs
brew install emacs --use-git-head --cocoa --srgb
Meta key doesn’t work on iTerm. To fix this, go to Prefs > Profiles > Keys. Set “Left option key acts as” to +Esc.
Looking up documentation
C-h f command-name
- find which hotkey is assigned to the command.C-h k key
- find what a hotkey does
Get mouse scrolling to work on iTerm2
;; dotspacemacs/user-config
(unless window-system
(global-set-key (kbd "<mouse-4>") 'scroll-down-line)
(global-set-key (kbd "<mouse-5>") 'scroll-up-line))
https://github.com/syl20bnr/spacemacs/issues/4591#issuecomment-223273558
Vim to evil-mode
- Evil Guide: Emacs/Evil for Vim Users
- Towards a vim-like Emacs
- From Vim to Emacs in Fourteen Days
- My Descent Into Evil
- From Vim to Emacs+Evil chaotic migration guide
- Setting up Emacs as Ruby development environment on OSX
- Vim in Emacs Bootstrap
- Configuring emacs and evil mode for Go development
Elixir
Elisp links
- Emergency Elisp - excellent tutorial for elisp by Steve Yegge