Merge pull request #4415 from nbfalcon/bugfix/module-goto-definition

Workaround: fix goto definition on modules
This commit is contained in:
Henrik Lissner 2020-12-12 13:37:44 -05:00 committed by GitHub
commit 4e4ad325a5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,9 @@ to a pop up buffer."
(defun +emacs-lisp-lookup-definition (_thing) (defun +emacs-lisp-lookup-definition (_thing)
"Lookup definition of THING." "Lookup definition of THING."
(if-let (module (+emacs-lisp--module-at-point)) (if-let (module (+emacs-lisp--module-at-point))
(doom/help-modules (car module) (cadr module) 'visit-dir) ;; FIXME: this is probably a bug in `counsel'. See
;; https://github.com/abo-abo/swiper/pull/2752.
(progn (doom/help-modules (car module) (cadr module) 'visit-dir) 'deferred)
(call-interactively #'elisp-def))) (call-interactively #'elisp-def)))
;;;###autoload ;;;###autoload