Browse Source

Android fix

master
Raphael Roberts 6 years ago
parent
commit
cab5a8a29f
  1. 35
      settings.org

35
settings.org

@ -282,6 +282,7 @@ This handy function is a customized ripoff of custom-save-all
#+END_SRC
** Python
*** Platform specific
Set python command
#+BEGIN_SRC emacs-lisp
(setq elpy-rpc-python-command
(cond
@ -292,22 +293,26 @@ This handy function is a customized ripoff of custom-save-all
#+END_SRC
put executables in elpy-rpc-venv in path
#+BEGIN_SRC emacs-lisp
(defun rlbr/elpy-append-to-path ()
(setenv "PATH" (string-join (list (getenv "PATH")
(let ((default-directory (elpy-rpc-get-or-create-virtualenv))
(path-entry)
(elpy-binpath))
(if (string-equal system-type "windows-nt")
(progn (setq elpy-binpath (expand-file-name "Scripts"))
(setq path-entry (replace-regexp-in-string (regexp-quote "/")
(regexp-quote "\\")
elpy-binpath)))
(setq elpy-binpath (expand-file-name "bin"))
(setq path-entry elpy-binpath))
(nconc exec-path (list elpy-binpath))
elpy-binpath))
path-separator)))
(setenv "PATH" (string-join (list (getenv "PATH")
(let ((default-directory (elpy-rpc-get-or-create-virtualenv))
(path-entry)
(elpy-binpath))
(if (string-equal system-type "windows-nt")
(progn (setq elpy-binpath (expand-file-name "Scripts"))
(setq path-entry (replace-regexp-in-string (regexp-quote "/")
(regexp-quote "\\")
elpy-binpath)))
(setq elpy-binpath (expand-file-name "bin"))
(setq path-entry elpy-binpath))
(nconc exec-path (list elpy-binpath))
elpy-binpath))
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") " ")))
#+END_SRC
*** custom feature
#+BEGIN_SRC emacs-lisp

Loading…
Cancel
Save