~idmyn/dotfiles

a1c52448bbe80a564a2bb1619ec4b940b4a73ee2 — David Mynors 2 months 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.
  :custom-face
  (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."
(map!
 :leader
 :prefix "t"
 :desc "Toggle narrowing" "n" 'md/narrow-dwim)
 :desc "Narrow" "n" 'md/narrow-dwim)
#+END_SRC

** 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)
#+END_SRC
** 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))
#+END_SRC

** Olivetti
[[https://github.com/rnkn/olivetti][Olivetti]] is "a simple Emacs minor mode for a nice writing environment".
#+BEGIN_SRC emacs-lisp
(map!
 :leader
 :prefix "t"
 :desc "Olivetti" "o" 'olivetti-mode)
#+END_SRC
** 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)
#+END_SRC
** 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))
#+END_SRC

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
       lookup
       lsp
       (lsp +eglot)
       ;;macos             ; MacOS-specific commands
       magit             ; a git porcelain for Emacs
       ;;make              ; run make tasks from Emacs


@@ 105,7 105,7 @@
       :lang
       ;;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"))