Remove old eldoc/jsonrpc workarounds and just use built-in packages
This commit is contained in:
parent
ff740ce08e
commit
22c029b2f4
1 changed files with 9 additions and 50 deletions
59
config.org
59
config.org
|
|
@ -61,57 +61,7 @@
|
||||||
(elpaca-wait)
|
(elpaca-wait)
|
||||||
#+end_src
|
#+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
|
|
||||||
|
|
||||||
** 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:
|
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(elpaca-wait)
|
|
||||||
#+END_SRC
|
|
||||||
|
|
||||||
* General config
|
* General config
|
||||||
|
|
||||||
** Bell
|
** Bell
|
||||||
|
|
||||||
The audible bell is annoying AF.
|
The audible bell is annoying AF.
|
||||||
|
|
@ -206,6 +156,15 @@ Use list-buffers bigger brother.
|
||||||
(global-set-key (kbd "M-SPC") 'mark-word)
|
(global-set-key (kbd "M-SPC") 'mark-word)
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Eldoc
|
||||||
|
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(use-package eldoc
|
||||||
|
:ensure nil
|
||||||
|
:init
|
||||||
|
(global-eldoc-mode))
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Isearch
|
** Isearch
|
||||||
|
|
||||||
Display number of matches:
|
Display number of matches:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue