Fix describe-(function|variable) and ivy-resume

describe-(function|variable) weren't remapped to their counsel variants,
so ivy-resume wouldn't resume those sessions properly.
This commit is contained in:
Henrik Lissner 2018-01-06 00:07:07 -05:00
parent 4b8315466b
commit 9e3682535a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
3 changed files with 3 additions and 11 deletions

View file

@ -204,12 +204,3 @@ 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

@ -54,7 +54,8 @@ immediately runs it on the current candidate (ending the ivy session)."
[remap projectile-find-file] #'counsel-projectile-find-file
[remap imenu-anywhere] #'ivy-imenu-anywhere
[remap execute-extended-command] #'counsel-M-x
[remap describe-face] #'counsel-describe-face)
[remap describe-function] #'counsel-describe-function
[remap describe-variable] #'counsel-describe-variable)
;; Show more buffer information in switch-buffer commands
(ivy-set-display-transformer #'ivy-switch-buffer #'+ivy-buffer-transformer)