SpaceEmacs Rock Day7 学习笔记
SpaceEmacs Rock Day7 学习笔记
Table of Contents
- 1. SpaceEmacs Rocks Day 7
- 1.1. Tweak C-w to delete backward
- 1.2. Evil Turn Emacs into Vim
1 SpaceEmacs Rocks Day 7
1.1 Tweak C-w to delete backward
;; Tweak C-w to delete backward
(global-set-key (kbd "C-w") 'backward-kill-word)
1.2 Evil Turn Emacs into Vim
install Evil plugins
- evil-leader
tell the different between fvil and Vim
configure Evil leader key
- Evil State = Vim mode
- evil normal state
- evil insert state
- evil visual state
- evil notion state
- evil emacs state
- evil operator state
(global-evil-leader-mode) (evil-leader/set-key "ff" 'find-file "fr" 'recentf-open-files "b" 'switch-to-buffer "k" 'kill-buffer "pf" 'counsel-find-file "ps" 'helm-do-ag-project-root "1" 'select-window-1 "2" 'select-window-2 "3" 'select-window-3 "4" 'select-window-4 "s3" 'split-window-right "s2" 'split-window-below ":" 'counsel-M-x "dw" 'delete-other-windows )
press `C-z` to toggle between Normal and Emacs state
Made some nodes to use emacs-state
(dolist (mode '(ag-mode flycheck-error-list-mode git-rebase-mode)) (add-to-list 'evil-emacs-state-modes mode))
bind h/j/k/l key
(add-hook 'occur-mode-hook (lambda () (evil-add-hjkl-bindings occur-mode-map 'emacs (kbd "/") 'evil-search-forward (kbd "n") 'evil-search-next (kbd "N") 'evil-search-previous (kdb "C-d") 'evil-scroll-down (kdb "C-u") 'evil-scroll-up )))
Add this to Dired mode, ibuffer mode
Date: 2018-10-24 12:16
Author: devinkin
Created: 2018-10-24 三 20:16