From e6958f7a203a369b77e912f2862804ea50b70217 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Tue, 15 Oct 2019 09:50:43 -0500 Subject: [PATCH] put android fixes in defun --- settings.org | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/settings.org b/settings.org index 3f30975..624befe 100644 --- a/settings.org +++ b/settings.org @@ -310,9 +310,10 @@ put executables in elpy-rpc-venv in path path-separator))) #+END_SRC #+BEGIN_SRC emacs-lisp - (unless (= 0 (call-process elpy-rpc-python-command nil nil nil "-c" "import multiprocessing;multiprocessing.Pool()")) - (setq python-check-command - (string-join `(,python-check-command "--jobs=1") " "))) + (defun rlbr/fix-for-android () + (unless (= 0 (call-process elpy-rpc-python-command nil nil nil "-c" "import multiprocessing;multiprocessing.Pool()")) + (setq python-check-command + (string-join `(,python-check-command "--jobs=1") " ")))) #+END_SRC *** custom feature #+BEGIN_SRC emacs-lisp @@ -454,7 +455,8 @@ put executables in elpy-rpc-venv in path :config (when (require 'flycheck nil t) (setq elpy-modules (delq 'elpy-module-flymake elpy-modules))) - (rlbr/elpy-append-to-path)) + (rlbr/elpy-append-to-path) + (rlbr/fix-for-android)) (elpy-enable)) #+END_SRC ** SSH config mode