From 7c96b2e2be857b31585162457894e7c7d33dfd71 Mon Sep 17 00:00:00 2001 From: Gerard Vermeulen Date: Sun, 16 Jun 2024 17:24:22 +0200 Subject: [PATCH] Fix `package-vc-install' for `oglot' (to fix deleting "elpa") --- README.org | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.org b/README.org index c657893..e94c960 100644 --- a/README.org +++ b/README.org @@ -3943,9 +3943,11 @@ configuration: #+caption: Setup ~oglot~ for ~python-mode~. #+name: lst:setup-oglot #+begin_src emacs-lisp -n :results silent -(when (and (package-installed-p 'oglot) - (require 'oglot nil 'noerror)) - (setopt oglot-maybe-ensure-modes '(python-mode))) +;; GAV: Is always OK after the second evaluation of the form below. +(if (and (package-installed-p 'oglot) + (require 'oglot nil 'noerror)) + (setopt oglot-maybe-ensure-modes '(python-mode)) + (package-vc-install '(oglot :url "https://github.com/gav451/oglot.git"))) #+end_src #+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]: