Fix package-vc-install' for oglot' (to fix deleting "elpa")

This commit is contained in:
Gerard Vermeulen 2024-06-16 17:24:22 +02:00
parent 796d0336b4
commit 7c96b2e2be

View File

@ -3943,9 +3943,11 @@ configuration:
#+caption: Setup ~oglot~ for ~python-mode~. #+caption: Setup ~oglot~ for ~python-mode~.
#+name: lst:setup-oglot #+name: lst:setup-oglot
#+begin_src emacs-lisp -n :results silent #+begin_src emacs-lisp -n :results silent
(when (and (package-installed-p 'oglot) ;; GAV: Is always OK after the second evaluation of the form below.
(require 'oglot nil 'noerror)) (if (and (package-installed-p 'oglot)
(setopt oglot-maybe-ensure-modes '(python-mode))) (require 'oglot nil 'noerror))
(setopt oglot-maybe-ensure-modes '(python-mode))
(package-vc-install '(oglot :url "https://github.com/gav451/oglot.git")))
#+end_src #+end_src
#+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]: #+caption[Start =eglot= in case of a proper =dir-local-variables-alist=]: