From a187752c824b47052d33d3bc12749b5a7d2e8191 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 1 Jun 2023 19:35:59 -0700 Subject: 🤡 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I06b104d79deac199f9cd9cdae705e333d23cc852 --- emacs/custom/my-lang-python.el | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 emacs/custom/my-lang-python.el (limited to 'emacs/custom/my-lang-python.el') diff --git a/emacs/custom/my-lang-python.el b/emacs/custom/my-lang-python.el deleted file mode 100644 index 10c1cd9..0000000 --- a/emacs/custom/my-lang-python.el +++ /dev/null @@ -1,32 +0,0 @@ -;;; my-lang-python.el --- Configures emacs for python -*- lexical-binding: t -*- -;; Author: Franck Cuny - -;;; Commentary: - -;;; Code: - -(require 'python) - -(setq python-interpreter "ipython3") -(setq python-shell-interpreter "python3") -(setq python-shell-interpreter-args "-i") - -;;; bindings -(define-key python-mode-map (kbd "C-h f") 'python-eldoc-at-point) - -;;; hooks -;; if black is present, enable it -(when (executable-find "black") - (require 'blacken) - (add-hook 'python-mode-hook 'blacken-mode)) - -(when (executable-find "pylsp") - (add-hook 'python-mode-hook 'eglot-ensure) - ;; https://github.com/python-lsp/python-lsp-server/blob/develop/CONFIGURATION.md - (setq-default eglot-workspace-configuration - '((pylsp (plugins (flake8 (enabled . :json-false)) - (pycodestyle (enabled . :json-false))))))) - -(provide 'my-lang-python) - -;;; my-lang-python.el ends here -- cgit 1.4.1