From 2be9d61d670086031621084b0ba5a1bcfb9bc322 Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Sat, 28 Sep 2019 13:14:54 -0500 Subject: [PATCH] Use python3 for rpc interpreter and put minor modes on hooks --- settings.org | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/settings.org b/settings.org index a499690..79fd9df 100644 --- a/settings.org +++ b/settings.org @@ -167,11 +167,12 @@ ** Python *** Platform specific #+BEGIN_SRC emacs-lisp - (cond - ((string-equal system-type "gnu/linux") - "python3") - ((string-equal system-type "windows-nt") - "python.exe")) + (setq elpy-rpc-python-command + (cond + ((string-equal system-type "gnu/linux") + "python3") + ((string-equal system-type "windows-nt") + "pythonw.exe"))) #+END_SRC *** custom feature #+BEGIN_SRC emacs-lisp @@ -206,13 +207,14 @@ *** bindings/settings #+BEGIN_SRC emacs-lisp (use-package python + :hook ((python-mode . blacken-mode) + (python-mode . pyvenv-mode)) :config (use-package elpy :bind (("C-=" . elpy-goto-assignment)) :config (when (require 'flycheck nil t) (setq elpy-modules (delq 'elpy-module-flymake elpy-modules)))) - (elpy-enable) - (blacken-mode)) + (elpy-enable)) #+END_SRC ** SSH config mode #+BEGIN_SRC emacs-lisp