2021-03-02 22:26:47 +00:00
|
|
|
;;; jlj-python.el --- python customizations -*- lexical-binding: t -*-
|
|
|
|
;;; Commentary:
|
|
|
|
|
2020-01-04 22:53:01 +00:00
|
|
|
;; pylint is required (pip install pylint)
|
|
|
|
;; pep8 (pip install pep8)
|
2021-03-02 22:26:47 +00:00
|
|
|
;; don't use python-mode because JESUS. CHRIST. it throws everything off.
|
2020-01-04 22:53:01 +00:00
|
|
|
;; using jedi requires virtualenv to be installed
|
|
|
|
;; pipenv is mostly acceptable but i could not make a full IDE experience happen
|
|
|
|
|
2021-03-02 22:26:47 +00:00
|
|
|
;;; Code:
|
|
|
|
;; Initialise installed packages
|
|
|
|
|
|
|
|
|
|
|
|
|
2020-01-07 21:59:44 +00:00
|
|
|
(use-package pipenv
|
|
|
|
:ensure t)
|
2020-01-04 22:53:01 +00:00
|
|
|
|
2020-01-19 22:58:02 +00:00
|
|
|
(use-package poetry
|
|
|
|
:ensure t)
|
|
|
|
|
2020-01-07 21:59:44 +00:00
|
|
|
(use-package flycheck
|
|
|
|
:ensure t)
|
2020-01-04 22:53:01 +00:00
|
|
|
|
2021-04-30 01:21:26 +00:00
|
|
|
; helps with LSP, generally.
|
|
|
|
(yas-global-mode 1)
|
|
|
|
|
2020-01-07 21:59:44 +00:00
|
|
|
; Let's set up company! perhaps not necessary but this is what i like to use
|
|
|
|
(use-package company
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(setq company-idle-delay 0)
|
|
|
|
(setq company-minimum-prefix-length 1))
|
2020-01-04 22:53:01 +00:00
|
|
|
|
2022-03-18 20:00:43 +00:00
|
|
|
(use-package project :ensure t)
|
2020-01-07 21:59:44 +00:00
|
|
|
|
2022-03-18 20:00:43 +00:00
|
|
|
(use-package eglot
|
2020-12-16 19:52:03 +00:00
|
|
|
:ensure t
|
2022-03-18 20:00:43 +00:00
|
|
|
:config
|
|
|
|
(add-hook 'python-mode-hook 'eglot-ensure))
|
2020-01-04 22:53:01 +00:00
|
|
|
|
|
|
|
;; (use-package pyvenv
|
|
|
|
;; :ensure t)
|
|
|
|
(use-package virtualenvwrapper
|
|
|
|
:ensure t
|
|
|
|
:config
|
|
|
|
(venv-initialize-interactive-shells) ;; if you want interactive shell support
|
|
|
|
(venv-initialize-eshell) ;; if you want eshell support
|
|
|
|
(setq venv-location "~/.local/share/virtualenvs/"))
|
2021-03-02 22:26:47 +00:00
|
|
|
|
|
|
|
;;; jlj-python.el ends here
|