From 476fb9eb2bcd20c3adcd8462efbb548bb83cedcf Mon Sep 17 00:00:00 2001 From: 10sr <8.slashes@gmail.com> Date: Wed, 19 Dec 2018 13:11:54 +0900 Subject: [PATCH] Add cond --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index dcf0fd8..b152864 100644 --- a/emacs.el +++ b/emacs.el @@ -964,7 +964,8 @@ found, otherwise returns nil." (set-variable 'flycheck-python-pycompile-executable "python3") (set-variable 'python-indent-guess-indent-offset nil) (with-eval-after-load 'blacken - (with-venv-advice-add 'blacken-buffer)) + (when (require 'with-venv nil t) + (with-venv-advice-add 'blacken-buffer))) ;; http://fukuyama.co/foreign-regexp