all repos — nixfiles @ e3871012667d77f0e5e9f5dd8e7e49a076f71b5f

System and user configuration, managed by nix and home-manager

emacs: automatically update packages list after idle
Alan Pearce alan@alanpearce.eu
Sun, 23 Mar 2025 23:00:59 +0100
commit

e3871012667d77f0e5e9f5dd8e7e49a076f71b5f

parent

532d8eda9ef025880a3c859b6f4e336a0a9dac5b

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -32,6 +32,7 @@ (interactive)   (load-file user-init-file))
 
 (add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)
+(run-with-idle-timer 300 nil #'package-refresh-contents)
 
 (setq use-package-enable-imenu-support t)
 (require 'use-package)