diff --git a/oni-python/oni-python.el b/oni-python/oni-python.el index 39454a7..d18fc9b 100644 --- a/oni-python/oni-python.el +++ b/oni-python/oni-python.el @@ -4,8 +4,8 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 2020.0305.222235 -;; Package-Requires: (oni-yasnippet oni-company company-jedi oni-fci oni-flycheck oni-hydra rainbow-delimiters reformatter traad) +;; Version: 2020.0706.231614 +;; Package-Requires: (oni-yasnippet oni-company oni-fci oni-flycheck oni-hydra oni-lsp rainbow-delimiters reformatter traad) ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -75,8 +75,6 @@ for indentation." (setq-local whitespace-style '(face tabs)) (whitespace-mode)) -(add-to-list 'company-backends 'company-jedi) - (reformatter-define python-black :program "black" :args `("--line-length" ,(number-to-string fill-column) "-") @@ -89,15 +87,16 @@ for indentation." (define-key python-mode-map (kbd "C-c r") 'python-refactor-hydra/body) +(add-hook 'python-mode-hook 'company-mode) (add-hook 'python-mode-hook 'electric-indent-local-mode) (add-hook 'python-mode-hook 'electric-pair-local-mode) -(add-hook 'python-mode-hook 'flycheck-mode) (add-hook 'python-mode-hook 'fci-mode) -(add-hook 'python-mode-hook 'company-mode) -(add-hook 'python-mode-hook 'rainbow-delimiters-mode) -(add-hook 'python-mode-hook 'python-black-on-save-mode) +(add-hook 'python-mode-hook 'flycheck-mode) +(add-hook 'python-mode-hook 'lsp) (add-hook 'python-mode-hook 'oni-python-set-fill-column) (add-hook 'python-mode-hook 'oni-python-whitespace-mode) +(add-hook 'python-mode-hook 'python-black-on-save-mode) +(add-hook 'python-mode-hook 'rainbow-delimiters-mode) ;;;###autoload (with-eval-after-load 'python