diff options
Diffstat (limited to '.config/emacs')
-rw-r--r-- | .config/emacs/init.el | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/.config/emacs/init.el b/.config/emacs/init.el index 07f6149..645aad6 100644 --- a/.config/emacs/init.el +++ b/.config/emacs/init.el @@ -108,9 +108,22 @@ buffer suppressed." package-archive-priorities '(("gnu" . 3) ("nongnu" . 2) ("melpa" . 1))) -(package-initialize) (setopt use-package-always-defer t) +(package-initialize) + +(defun mm-package-sync () + "Remove unused packages and install missing ones." + (interactive) + (let ((window-configuration (current-window-configuration))) + (package-autoremove) + (package-install-selected-packages) + (package-upgrade-all) + (package-vc-install-selected-packages) + (package-vc-upgrade-all) + (set-window-configuration window-configuration)) + (message "Done syncing packages.")) + ;;; Generic Emacs Configuration |