From 5266f76192352d734966d70adec950dd1f171bef Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Fri, 10 Jan 2020 19:58:48 +0900 Subject: [PATCH] Update fkycheck config --- emacs.el | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/emacs.el b/emacs.el index 3a58b48..37c3f79 100644 --- a/emacs.el +++ b/emacs.el @@ -1435,14 +1435,11 @@ found, otherwise returns nil." (defun my-set-venv-flycheck-executable-find () "Set flycheck executabie find." (interactive) - (when (and (require 'with-venv nil t) - ;; Hack not to set when venv dir not found - (with-venv-find-venv-dir)) - (set-variable 'flycheck-executable-find - '(lambda (e) - (with-venv - (executable-find e))) - t))) + (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'."