Skip to content

Instantly share code, notes, and snippets.

@pillyshi
Created January 10, 2021 07:51
Show Gist options
  • Save pillyshi/71d06f738302e5e84c7ccd724beace14 to your computer and use it in GitHub Desktop.
Save pillyshi/71d06f738302e5e84c7ccd724beace14 to your computer and use it in GitHub Desktop.
Minimum init.el for Python development on emacs
(package-initialize)
(setq package-archives
'(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "http://melpa.org/packages/")
("org" . "http://orgmode.org/elpa/")))
;; elpy
(elpy-enable)
(require 'virtualenvwrapper)
(require 'auto-virtualenvwrapper)
(add-hook 'python-mode-hook #'auto-virtualenvwrapper-activate)
(setq elpy-rpc-virtualenv-path 'current)
(setq elpy-rpc-backend "jedi")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment