From f0f071a67a675d0bb9cd1f1374c3773a9290b4fe Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Mon, 27 May 2019 13:50:45 +0900 Subject: [PATCH] Add pydoc advice --- emacs.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs.el b/emacs.el index 8813b87..5e9268a 100644 --- a/emacs.el +++ b/emacs.el @@ -1305,6 +1305,10 @@ found, otherwise returns nil." 'one-level-to-beginning-of-statement) (set-variable 'pydoc-command "python3 -m pydoc") +(with-eval-after-load 'pydoc + (when (require 'with-venv nil t) + (with-venv-advice-add 'pydoc))) + (when (autoload-eval-lazily 'pipenv) ;; (declare-function pipenv-projectile-after-switch-default "pipenv")