6b33031dc5
- Rename contrib directory to layers - Add new variable dotspacemacs-distribution - Move spacemacs layer to layers/!distribution - New layer spacemacs-core in layers/!distribution - User can now set dotspacemacs-distribution to spacemacs or spacemacs-core (default spacemacs) spacemacs-core is very lightweight layer sufficient to build upon spacemacs.
36 lines
1.7 KiB
EmacsLisp
36 lines
1.7 KiB
EmacsLisp
;; from tpope's unimpaired
|
|
|
|
(define-key evil-normal-state-map (kbd "[ SPC") (lambda() (interactive)(evil-insert-newline-above) (forward-line)))
|
|
(define-key evil-normal-state-map (kbd "] SPC") (lambda() (interactive)(evil-insert-newline-below) (forward-line -1)))
|
|
|
|
(define-key evil-normal-state-map (kbd "[ e") 'move-text-up)
|
|
(define-key evil-normal-state-map (kbd "] e") 'move-text-down)
|
|
|
|
(define-key evil-visual-state-map (kbd "[ e") ":move'<--1")
|
|
(define-key evil-visual-state-map (kbd "] e") ":move'>+1")
|
|
|
|
;; (define-key evil-visual-state-map (kbd "[ e") 'move-text-up)
|
|
;; (define-key evil-visual-state-map (kbd "] e") 'move-text-down)
|
|
|
|
(define-key evil-normal-state-map (kbd "[ b") 'spacemacs/previous-useful-buffer)
|
|
(define-key evil-normal-state-map (kbd "] b") 'spacemacs/next-useful-buffer)
|
|
|
|
(define-key evil-normal-state-map (kbd "] l") 'spacemacs/next-error)
|
|
(define-key evil-normal-state-map (kbd "[ l") 'spacemacs/previous-error)
|
|
|
|
(define-key evil-normal-state-map (kbd "[ h") 'diff-hl-previous-hunk)
|
|
(define-key evil-normal-state-map (kbd "] h") 'diff-hl-next-hunk)
|
|
|
|
(define-key evil-normal-state-map (kbd "[ t") (lambda () (interactive)(raise-frame (previous-frame))))
|
|
(define-key evil-normal-state-map (kbd "] t") (lambda () (interactive)(raise-frame (next-frame))))
|
|
|
|
(define-key evil-normal-state-map (kbd "[ w") 'previous-multiframe-window)
|
|
(define-key evil-normal-state-map (kbd "] w") 'next-multiframe-window)
|
|
|
|
;; select pasted text
|
|
(define-key evil-normal-state-map (kbd "g p") (kbd "` [ v ` ]"))
|
|
|
|
;; paste above or below with newline
|
|
(define-key evil-normal-state-map (kbd "[ p") 'unimpaired/paste-above)
|
|
(define-key evil-normal-state-map (kbd "] p") 'unimpaired/paste-below)
|
|
|