-
-
Save dougharris/397d2a58d6698e6006905135d44e0177 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'package) | |
(add-to-list 'package-archives | |
'("melpa-stable" . "https://stable.melpa.org/packages/")) | |
(package-initialize) | |
(setq package-selected-packages (quote | |
(elpy | |
flycheck))) | |
(package-install-selected-packages) | |
(elpy-enable) | |
(when (require 'flycheck nil t) | |
(setq elpy-modules (delq 'elpy-module-flymake elpy-modules)) | |
(add-hook 'elpy-mode-hook 'flycheck-mode)) | |
(defun elpy--xref-backend () | |
"Return the name of the elpy xref backend." | |
(if (or (and (not (elpy-rpc--process-buffer-p elpy-rpc--buffer)) | |
(elpy-rpc--get-rpc-buffer)) | |
elpy-rpc--jedi-available) | |
'elpy | |
nil)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment