Skip to content

Commit

Permalink
Add support for paradox and gist-list menu
Browse files Browse the repository at this point in the history
  • Loading branch information
syl20bnr committed Dec 3, 2014
1 parent 177eccd commit e0a0c9a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ Press `fd` quickly to:
- quit apropos buffers
- quit ert buffers
- quit undo-tree buffer
- quit paradox
- quit gist-list menu
- hide neotree buffer

And more to come !
Expand Down
8 changes: 7 additions & 1 deletion evil-escape.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Sylvain Benner <[email protected]>
;; Keywords: convenience editing evil
;; Created: 22 Oct 2014
;; Version: 1.6.1
;; Version: 1.6.2
;; Package-Requires: ((emacs "24") (evil "1.0.9") (key-chord "0.6"))
;; URL: https://github.com/syl20bnr/evil-escape

Expand Down Expand Up @@ -39,6 +39,8 @@
;; - quit apropos buffers
;; - quit ert buffers
;; - quit undo-tree buffer
;; - quit paradox
;; - quit gist-list menu
;; - hide neotree buffer
;; And more to come !

Expand Down Expand Up @@ -157,6 +159,10 @@ with a key sequence."
'(lambda () (interactive)
(cond ((string-match "magit" (symbol-name major-mode))
(setq unread-command-events (listify-key-sequence "q")))
((eq 'paradox-menu-mode major-mode)
(paradox-quit-and-close))
((eq 'gist-list-menu-mode major-mode)
(quit-window))
(t evil-normal-state))))
;; visual state
(key-chord-define evil-visual-state-map evil-escape-key-sequence 'evil-exit-visual-state)
Expand Down

0 comments on commit e0a0c9a

Please sign in to comment.