Skip to content

Instantly share code, notes, and snippets.

@dougharris
Created October 25, 2022 16:47
Show Gist options
  • Save dougharris/397d2a58d6698e6006905135d44e0177 to your computer and use it in GitHub Desktop.
Save dougharris/397d2a58d6698e6006905135d44e0177 to your computer and use it in GitHub Desktop.
(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