From f9d120e63245e7465ba2ee31cb7d20dd1bde830c Mon Sep 17 00:00:00 2001 From: Luke Hoersten Date: Sun, 25 Oct 2026 13:11:17 -0500 Subject: Fixed hanging auto-update melpa bug and removed npm dependency modes. --- init.el | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index 404722f..732fd14 100644 --- a/init.el +++ b/init.el @@ -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)) -- cgit v1.2.3