a1c52448bbe80a564a2bb1619ec4b940b4a73ee2 — David Mynors 14 days ago 2f592fb
Replace lsp-mode with eglot
3 files changed, 23 insertions(+), 6 deletions(-)

M emacs/.doom.d/config.org
M emacs/.doom.d/init.el
M emacs/.doom.d/packages.el
M emacs/.doom.d/config.org => emacs/.doom.d/config.org +19 -3
@@ 39,6 39,7 @@ any others) and then I add those details as below.
  (hl-line ((t (:inherit highlight :background "lavender"))))
  (lsp-ui-sideline-code-action ((t (:foreground "limegreen"))))
  (rustic-string-interpolation-face ((t)))
  (diredfl-file-name ((t)))
  (diredfl-file-suffix ((t)))
  (diredfl-symlink ((t)))

@@ 150,7 151,7 @@ If FILE is not inside `deft-directory', create it with zetteldeft rules."
 :prefix "t"
 :desc "Toggle narrowing" "n" 'md/narrow-dwim)
 :desc "Narrow" "n" 'md/narrow-dwim)

** Keybindings

@@ 360,7 361,7 @@ globally. I do occasionaly find it useful, though, so I have a toggle mapped to

(map! :leader
        :prefix "t"
        :desc "Toggle company mode" "c" 'company-mode)
        :desc "Company" "c" 'company-mode)
** Eldoc
I want to eldoc disabled in most modes

@@ 476,7 477,14 @@ tell CLI applications that it's ok to dump really long output into the buffer

   :n "W" 'wdired-change-to-wdired-mode))

** Olivetti
[[https://github.com/rnkn/olivetti][Olivetti]] is "a simple Emacs minor mode for a nice writing environment".
#+BEGIN_SRC emacs-lisp
 :prefix "t"
 :desc "Olivetti" "o" 'olivetti-mode)
** Ebuku
set the path to my [[https://github.com/jarun/buku][buku]] bookmarks
#+BEGIN_SRC emacs-lisp

@@ 559,3 567,11 @@ set the =grip-binary-path= for [[https://github.com/seagle0128/grip-mode][grip-m
#+BEGIN_SRC emacs-lisp
(setq rustic-lsp-server 'rust-analyzer)
** Eglot
because I don't want [[https://github.com/emacs-lsp/lsp-mode][lsp-mode]]'s bells and whistles
#+BEGIN_SRC emacs-lisp
(add-hook! eglot--managed-mode #'(flymake-mode (lambda () (eldoc-mode -1))))
(use-package flymake-diagnostic-at-point
  :after flymake
  :config (add-hook 'flymake-mode-hook #'flymake-diagnostic-at-point-mode))

M emacs/.doom.d/init.el => emacs/.doom.d/init.el +3 -3
@@ 53,7 53,7 @@
       (evil +everywhere); come to the dark side, we have cookies
       ;file-templates    ; auto-snippets for empty files
       ;fold              ; (nigh) universal code folding
       ;;(format +onsave)  ; automated prettiness
       format  ; automated prettiness
       ;;god               ; run Emacs commands without modifier keys
       ;;lispy             ; vim for lisp, for people who don't like vim
       multiple-cursors  ; editing in many places at once

@@ 90,7 90,7 @@
       (eval +overlay)     ; run code, run (also, repls)
       ;;gist              ; interacting with github gists
       (lsp +eglot)
       ;;macos             ; MacOS-specific commands
       magit             ; a git porcelain for Emacs
       ;;make              ; run make tasks from Emacs

@@ 105,7 105,7 @@
       ;;agda              ; types of types of types of types...
       ;;assembly          ; assembly for fun or debugging
       cc                ; C/C++/Obj-C madness
       ;;cc                ; C/C++/Obj-C madness
       clojure           ; java with a lisp
       common-lisp       ; if you've seen one lisp, you've seen them all
       ;;coq               ; proofs-as-programs

M emacs/.doom.d/packages.el => emacs/.doom.d/packages.el +1 -0
@@ 14,6 14,7 @@
(package! prettier-js)
(package! elvish-mode)
(package! olivetti)
(package! flymake-diagnostic-at-point)

(package! dired-show-readme
  :recipe (:host gitlab :repo "kisaragi-hiu/dired-show-readme"))