Restore the old buffer when using `ivy-call'

Without `deferred', the file selected in the `counsel-find-file' will
only remain the current buffer afterwards when pressing RET on an item,
not just `ivy-call'.
This commit is contained in:
Nikita Bloshchanevich 2021-02-26 22:06:41 +01:00
parent 65dfdd5c4a
commit e05d804f1f

View file

@ -61,7 +61,7 @@ to a pop up buffer."
(defun +emacs-lisp-lookup-definition (_thing)
"Lookup definition of THING."
(if-let (module (+emacs-lisp--module-at-point))
(progn (doom/help-modules (car module) (cadr module) 'visit-dir) 'deferred)
(doom/help-modules (car module) (cadr module) 'visit-dir)
(call-interactively #'elisp-def)))
;;;###autoload