   (tool-bar-mode 0)                                           ; no tool bar (tool-bar)
   (scroll-bar-mode 0)                                         ; no scroll bar (scroll-bar)
   (mouse-avoidance-mode 'animate)                             ; move mouse pointer out of way (avoid)
-  (global-eldoc-mode -1)                                      ; turn off annoying eldoc mode (eldoc)
   (fset 'yes-or-no-p 'y-or-n-p)                               ; change stupid default y/n? y
   (electric-indent-mode +1)                                   ; turn on electric mode globally (electric)
   (delete-selection-mode t)                                   ; pastes delete selection

  :demand)

;; built-in eldoc mode
(use-package eldoc-mode
  :ensure nil
  :general
  ("<f10> e" #'eldoc-mode))


  :after no-littering
  :general
  (:keymaps 'eglot-mode-map
            "<f6> c"  #'eglot-code-actions)
  :hook ((rust-mode . eglot-ensure))
  :init
  (setq eglot-ignored-server-capabilites '( :documentHighlightProvider)
