Created
August 5, 2014 20:45
-
-
Save deadghost/f9141a32add520701546 to your computer and use it in GitHub Desktop.
evil magit/cider-repl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;; Magit ;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; Don't open a new frame. | |
| (setq ediff-window-setup-function 'ediff-setup-windows-plain) | |
| (add-hook 'magit-mode-hook | |
| (lambda () | |
| (local-set-key (kbd "j") 'evil-next-line) | |
| (local-set-key (kbd "k") 'evil-previous-line) | |
| (local-set-key (kbd "K") 'magit-discard-item) | |
| (local-set-key (kbd "<escape>") 'magit-mode-quit-window))) | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;;; Cider REPL ;; | |
| ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
| ;; TODO: Have 0 and ^ start after > | |
| (add-hook 'cider-repl-mode-hook | |
| (lambda () | |
| (evil-local-set-key 'normal (kbd "C-j") 'cider-repl-forward-input) | |
| (evil-local-set-key 'insert (kbd "C-j") 'cider-repl-forward-input) | |
| (evil-local-set-key 'normal (kbd "C-k") 'cider-repl-backward-input) | |
| (evil-local-set-key 'insert (kbd "C-k") 'cider-repl-backward-input))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment