Last active
June 1, 2025 05:03
-
-
Save shegeley/deaa89dc3aea7de3e7f8fb45c44c883a to your computer and use it in GitHub Desktop.
Prevent loading remote projects in emacs-dashboard to speed up dashboard's startup.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; dashboard-hacks.el --- Emacs Dashboard Hacks -*- lexical-binding: t; -*- | |
(require 'project) | |
(defun project-forget-remote-projects () | |
"Forget all remote projects. emacs-dashboard lags massively when trying to display remote projects via project.el" | |
(interactive) | |
(dolist (proj (project-known-project-roots)) | |
(when (file-remote-p proj) | |
(project-forget-project proj)))) | |
(advice-add | |
'project-forget-remote-projects | |
:before | |
'project-forget-zombie-projects) | |
(provide 'dashboard-hacks) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment