Parcourir la source

Fix error of with-venv absence

master
10sr il y a 4 ans
Parent
révision
e41c384c80
Signé par: 10sr ID de la clé GPG: C384BB17CBB19347
1 fichiers modifiés avec 6 ajouts et 5 suppressions
  1. +6
    -5
      emacs.el

+ 6
- 5
emacs.el Voir le fichier

@@ -1624,11 +1624,12 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called."
(defun my-set-venv-flycheck-executable-find ()
"Set flycheck executabie find."
(interactive)
(set-variable 'flycheck-executable-find
'(lambda (e)
(with-venv
(executable-find e)))
t))
(when (fboundp 'with-venv)
(set-variable 'flycheck-executable-find
'(lambda (e)
(with-venv
(executable-find e)))
t)))

(defun my-update-flycheck-flake8-error-level-alist ()
"Update `flycheck-flake8-error-level-alist'."


Chargement…
Annuler
Enregistrer