From ce1c827f4c4c3bfcdf0dfc83ee6b1e2465b875e0 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 27 Sep 2024 15:49:26 +0200 Subject: [PATCH 1/4] ELPACA: Add sub-titles --- config.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config.org b/config.org index 27cc543..7002ee2 100644 --- a/config.org +++ b/config.org @@ -5,6 +5,8 @@ * Elpaca +** Core + #+begin_src emacs-lisp (defvar elpaca-installer-version 0.7) (defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory)) @@ -46,6 +48,8 @@ (elpaca `(,@elpaca-order)) #+end_src +** Use-package integration + #+begin_src emacs-lisp ;; Install use-package support (elpaca elpaca-use-package From 1a99cb8ccb94a9797611c0cc3c1fa3445b07b674 Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 27 Sep 2024 15:50:10 +0200 Subject: [PATCH 2/4] ELPACA: Wait until use-package integration fully loaded Stolen from github: https://github.com/progfolio/elpaca/issues/236 If the maintainer does it, it probably is needed. --- config.org | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/config.org b/config.org index 7002ee2..68b8f96 100644 --- a/config.org +++ b/config.org @@ -51,11 +51,14 @@ ** Use-package integration #+begin_src emacs-lisp - ;; Install use-package support - (elpaca elpaca-use-package - ;; Enable use-package :ensure support for Elpaca. - (elpaca-use-package-mode) - ) +;; Install use-package support +(elpaca elpaca-use-package + ;; Enable use-package :ensure support for Elpaca. + (elpaca-use-package-mode) + ) + +;; wait to get elpaca use-package integration +(elpaca-wait) #+end_src * General config From 21fbc47a8f650ecbd8ef20a773a7d539e9e19aef Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 27 Sep 2024 15:57:14 +0200 Subject: [PATCH 3/4] ADD eldoc section This is a built-in package which we are updating for eglot. This requires some emacs-fu which I found on the elpaca github. --- config.org | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/config.org b/config.org index 68b8f96..99d95d8 100644 --- a/config.org +++ b/config.org @@ -61,6 +61,43 @@ (elpaca-wait) #+end_src +* Built-in packages +** Eldoc + +I got the following error message when loading eglot: +#+BEGIN_SRC +eglot failed eldoc installed version (1 13 0) lower than min required 1.14.0 00.239351 +#+END_SRC + +So install the eldoc package to be sure we have the latest version. +But after installing it, we get a new warning: + +#+BEGIN_SRC +⛔ Warning (emacs): eldoc loaded before Elpaca activation +#+END_SRC + +This seemed tricker than expected, but found a solution in the github issues of elpaca: +https://github.com/progfolio/elpaca/issues/236 + +#+BEGIN_SRC emacs-lisp +(use-package eldoc + :preface + ;; avoid loading of built-in eldoc, see https://github.com/progfolio/elpaca/issues/236#issuecomment-1879838229 + (unload-feature 'eldoc t) + (setq custom-delayed-init-variables '()) + (defvar global-eldoc-mode nil) + :demand t + :config + (global-eldoc-mode)) + +#+END_SRC +** Wait for loading updated packages + +Wait until updated built-in packages are fully loaded: +#+BEGIN_SRC emacs-lisp +(elpaca-wait) +#+END_SRC + * General config ** Bell From 1521fcb13ee8f72d3aa35f3fef7c4c7f1264e2df Mon Sep 17 00:00:00 2001 From: Laurens Miers Date: Fri, 27 Sep 2024 15:58:24 +0200 Subject: [PATCH 4/4] ADD jsonrpc section This is a built-in package which we are updating for eglot. --- config.org | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/config.org b/config.org index 99d95d8..b7dbd21 100644 --- a/config.org +++ b/config.org @@ -91,6 +91,18 @@ https://github.com/progfolio/elpaca/issues/236 (global-eldoc-mode)) #+END_SRC + +** Jsonrpc +After eldoc was taken care of, a new error was reported: +#+BEGIN_SRC +eglot failed jsonrpc installed version (1 0 16) lower than min required 1.0.24 00.280828 +#+END_SRC + +So let's install the latest one: +#+BEGIN_SRC emacs-lisp +(use-package jsonrpc) +#+END_SRC + ** Wait for loading updated packages Wait until updated built-in packages are fully loaded: