diff options
| author | Luke Hoersten <[email protected]> | 2026-10-25 13:11:17 -0500 |
|---|---|---|
| committer | Luke Hoersten <[email protected]> | 2026-10-25 13:11:17 -0500 |
| commit | f9d120e63245e7465ba2ee31cb7d20dd1bde830c (patch) | |
| tree | 51de912cebc3f1dc6c78208f2c2b126230866fd7 | |
| parent | 42f71b406171be4c47b30b0d7e6bc74245e50100 (diff) | |
| -rw-r--r-- | init.el | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -62,10 +62,8 @@ (require 'package) (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) -;; Install packages if missing -(unless package-archive-contents - (package-refresh-contents)) +;; Install packages if missing; avoid network requests on normal startup. (dolist (package '( @@ -123,6 +121,8 @@ claude-code-context ; send Emacs buffer context to Claude Code )) (unless (package-installed-p package) + (unless package-archive-contents + (package-refresh-contents)) (package-install package))) @@ -266,6 +266,8 @@ ;;; eglot (LSP client) +;; HTML, CSS, and JSON keep tree-sitter highlighting and Cape completion +;; without automatically starting the npm-provided language servers. (with-eval-after-load 'eglot (setq-default eglot-autoshutdown t ; shutdown server when last buffer is killed @@ -280,9 +282,6 @@ c++-ts-mode-hook rust-ts-mode-hook yaml-ts-mode-hook - json-ts-mode-hook - css-ts-mode-hook - html-ts-mode-hook haskell-mode-hook)) (add-hook hook 'eglot-ensure)) |
