Browse Source

Revamped python config and removed redundant blacken-mode

master
Raphael Roberts 6 years ago
parent
commit
9b9fd3c87f
  1. 1
      custom.el
  2. 18
      settings.org

1
custom.el

@ -82,7 +82,6 @@
mode-line-bell
htmlize
cython-mode
blacken
dired-narrow
lua-mode
browse-kill-ring

18
settings.org

@ -434,14 +434,22 @@ put executables in elpy-rpc-venv in path
*** bindings/settings
#+BEGIN_SRC emacs-lisp
(use-package python
:hook ((python-mode . blacken-mode)
(python-mode . pyvenv-mode)
(hack-local-variables . rlbr/init-venv))
:hook
((python-mode . pyvenv-mode)
(python-mode . flycheck-mode)
(python-mode . (lambda () (add-hook 'before-save-hook 'elpy-black-fix-code nil 'local))))
:bind
(:map python-mode-map
(("C-<" . flycheck-previous-error)
("C->" . flycheck-next-error)))
:config
(use-package elpy
:hook (hack-local-variables . rlbr/init-venv)
:bind (("C-=" . elpy-goto-assignment))
:config (when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules))))
:config
(when (require 'flycheck nil t)
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules)))
(rlbr/elpy-append-to-path))
(elpy-enable))
#+END_SRC
** SSH config mode

Loading…
Cancel
Save