private/hlissner: add q/Q help-mode-map bindings

This commit is contained in:
Henrik Lissner 2017-05-17 21:07:01 +02:00
parent 199ece00d8
commit 7f385e6d6e
2 changed files with 10 additions and 0 deletions

View file

@ -217,3 +217,11 @@ counsel-rg)."
(re-search-forward (ivy--regex ivy-text t) (line-end-position) t)
(run-hooks 'counsel-grep-post-action-hook)
(selected-window))))))
;;;###autoload
(defun +ivy-quit-and-resume ()
"Close the current popup window and resume ivy."
(interactive)
(when (doom-popup-p)
(doom/popup-close))
(ivy-resume))

View file

@ -301,6 +301,8 @@
;; help-mode
(:map help-mode-map
:n "q" #'quit-window
:n "Q" #'+ivy-quit-and-resume
:n "]]" #'help-go-forward
:n "[[" #'help-go-back
:n "o" #'ace-link-help)