瀏覽代碼

Fix pydoc loadings

master
10sr 3 年之前
父節點
當前提交
1cdd9cd033
簽署人: 10sr GPG 金鑰 ID: 7BEC428194130EB2
共有 1 個檔案被更改,包括 5 行新增1 行删除
  1. +5
    -1
      emacs.el

+ 5
- 1
emacs.el 查看文件

@@ -1673,8 +1673,12 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called."
"python3 -m pydoc")
(declare-function with-venv-advice-add "with-venv")
(with-eval-after-load 'pydoc
;; pydoc depends on python-shell-interpreter but it does not load this
(require 'python)
(when (require 'with-venv nil t)
(with-venv-advice-add 'pydoc)))
(with-venv-advice-add 'pydoc)
;; Used in interactive function of pydoc
(with-venv-advice-add 'pydoc-all-modules)))

(set-variable 'flycheck-python-mypy-config '("mypy.ini" ".mypy.ini" "setup.cfg"))
(set-variable 'flycheck-flake8rc '("setup.cfg" "tox.ini" ".flake8rc"))


Loading…
取消
儲存