From d77e600000a5dbf694cf1ba5c77aebad47ebdaaa Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Mon, 21 Oct 2024 17:12:25 -0700 Subject: [PATCH] Reduce amount of auto-staring --- init.el | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/init.el b/init.el index c63ac48..708c53a 100644 --- a/init.el +++ b/init.el @@ -1025,12 +1025,11 @@ With PROJECT, give diagnostics for all buffers in the current project." (use-package eglot :demand t :pin gnu ;; try to force Elpa version to fix warnings - :hook ((eglot-managed-mode . my/-eglot-setup) - (text-mode . my/eglot-in-text-mode-only)) + :hook ((eglot-managed-mode . my/-eglot-setup)) :init - (defun my/eglot-in-text-mode-only () - (when (eq major-mode 'text-mode) - (eglot-ensure))) + ;; (defun my/eglot-in-text-mode-only () + ;; (when (eq major-mode 'text-mode) + ;; (eglot-ensure))) (defvar my/-eglot-documentation-buffer nil "Buffer for showing documentation for `my/eglot-documentation-at-point'.") (defun my/eglot-documentation-at-point () @@ -1366,8 +1365,7 @@ otherwise, call `bibtex-find-text'." :hook ((LaTeX-mode . turn-on-reftex) (LaTeX-mode . LaTeX-math-mode) (LaTeX-mode . my/-setup-LaTeX-mode) - (LaTeX-mode . flycheck-mode) - (LaTeX-mode . eglot-ensure)) + (LaTeX-mode . flycheck-mode)) :bind (:map TeX-mode-map ("C-c ?" . latex-help)) :init @@ -1616,9 +1614,9 @@ line in the block and manually deal with indentation." ;; sly (use-package sly - :hook (lisp-mode . my/-lisp-mode-autoconnect-sly) + ;; :hook (lisp-mode . my/-lisp-mode-autoconnect-sly) :bind (:map sly-mode-map - ("C-c e" . my/sly-show-notes-at-point)) ; noindent + ("C-c e" . my/sly-show-notes-at-point)) :autoload sly-connected-p :init (defun my/-lisp-mode-autoconnect-sly () @@ -2137,7 +2135,8 @@ The name is compared with the field name using TESTFN (defaults to `equal')." "Setup up stuff in `org-mu4e-compose' buffers." (setq-local ltex-eglot-variable-save-method 'file) ;; this should come last so it can pick up the above - (eglot-ensure)) + ;; (eglot-ensure) + ) (add-hook 'org-mu4e-compose-mode-hook #'my/-setup-org-mu4e-compose-mode) ;; elfeed