diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-02-25 11:09:27 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-02-25 11:09:27 +0800 |
commit | 5a6711a7918d85ce23280dfdb5030a2d5c5a465a (patch) | |
tree | ca011024315643a5e504956bb8b7ff7bcb41e3e9 /_emacs.d | |
parent | 87ffd6deb54229bec31ff8750cc410fbb42edc86 (diff) | |
download | dotfiles-5a6711a7918d85ce23280dfdb5030a2d5c5a465a.tar.bz2 |
_emacs.d/personal/50-evil.el: add ESC keybindings
Diffstat (limited to '_emacs.d')
-rw-r--r-- | _emacs.d/personal/50-evil.el | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/_emacs.d/personal/50-evil.el b/_emacs.d/personal/50-evil.el index 860fbbf..a3ab9b5 100644 --- a/_emacs.d/personal/50-evil.el +++ b/_emacs.d/personal/50-evil.el @@ -16,12 +16,12 @@ ;;; Code: -;;; ESC ALWAYS quits -(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) +;; ESC *always* quits +(define-key minibuffer-local-map [escape] 'minibuffer-keyboard-quit) +(define-key minibuffer-local-ns-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-completion-map [escape] 'minibuffer-keyboard-quit) (define-key minibuffer-local-must-match-map [escape] 'minibuffer-keyboard-quit) -(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) +(define-key minibuffer-local-isearch-map [escape] 'minibuffer-keyboard-quit) (global-set-key [escape] 'keyboard-quit) ;; Prefer Emacs way after pressing ":" in evil-mode @@ -46,6 +46,15 @@ ">" 'org-metaright ; indent (kbd "TAB") 'org-cycle) +;; evil-escape: Escape from anything with a customizable key sequence +;; https://github.com/syl20bnr/evil-escape +;(prelude-require-package 'evil-escape) +;(require 'evil-escape) +;(setq-default evil-escape-key-sequence "kj") +;(setq evil-escape-exclude-major-modes '(dired-mode)) +;(evil-escape-mode 1) +;(global-set-key [escape] 'evil-escape) + ;; evil-leader ;; https://github.com/cofi/evil-leader (prelude-require-package 'evil-leader) @@ -60,7 +69,7 @@ "bf" 'buffer-menu "mu" 'mu4e "rm" 'remember -) + "rn" 'remember-notes) ;; evil-matchit: jump between matched tags in Emacs ;; https://github.com/redguardtoo/evil-matchit |