KarimAziev / km-py

Misc Emacs utils for Python.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

About

km-py.el is a utility library that enhances the Python development experience in Emacs by integrating with several Python environment management systems such as Poetry, Pipenv, virtualenv, and pip.

It provides automatic configuration of Python LSP servers, virtual environment activation, and convenient shell-interaction functions, aiming to offer a seamless workflow for Python projects within Emacs.

Table of Contents

Requirements

NameVersion
Emacs29.1
project0.10.0
python0.28
eglot1.15
pyvenv1.21
poetry (optional)0.2.0

Installation

With use-package and straight.el

(use-package km-py
  :demand t
  :after (python)
  :straight (km-py
             :repo "KarimAziev/km-py"
             :type git
             :host github)
  :commands (km-py-setup-enable)
  :config (km-py-setup-enable))

Manual installation

Download the source code and put it wherever you like, e.g. into ~/.emacs.d/km-py/

git clone https://github.com/KarimAziev/km-py.git ~/.emacs.d/km-py/

Add the downloaded directory to the load path:

(add-to-list 'load-path "~/.emacs.d/km-py/")
(require 'km-py)

Usage

After installing or loading the library into your Emacs setup, you can enable the Python environment setup by calling km-py-setup-enable.

To disable the setup and all advised commands, use km-py-setup-disable.

About

Misc Emacs utils for Python.

License:GNU General Public License v3.0


Languages

Language:Emacs Lisp 100.0%