* package management - auto check for updates?
@ 2014-03-25 14:17 Neal Becker
2014-03-25 15:56 ` Tassilo Horn
0 siblings, 1 reply; 2+ messages in thread
From: Neal Becker @ 2014-03-25 14:17 UTC (permalink / raw)
To: help-gnu-emacs
package management is finally getting pretty nice in emacs.
I use:
(package-initialize)
(require 'felineherd)
Now, every now and then, I manually check for updates.
But it'd be nice if emacs could automatically inform me of updates to my
installed pacakges.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: package management - auto check for updates?
2014-03-25 14:17 package management - auto check for updates? Neal Becker
@ 2014-03-25 15:56 ` Tassilo Horn
0 siblings, 0 replies; 2+ messages in thread
From: Tassilo Horn @ 2014-03-25 15:56 UTC (permalink / raw)
To: Neal Becker; +Cc: help-gnu-emacs
Neal Becker <ndbecker2@gmail.com> writes:
> package management is finally getting pretty nice in emacs.
>
> I use:
> (package-initialize)
> (require 'felineherd)
>
> Now, every now and then, I manually check for updates.
>
> But it'd be nice if emacs could automatically inform me of updates to
> my installed pacakges.
This works, although it's possibly not the cleanest solution. It
messages the upgradeable packages and also notifies you via desktop
notifications.
--8<---------------cut here---------------start------------->8---
(defun th/package-check-upgrades ()
(interactive)
(cl-flet ((check ()
(package-menu-mark-upgrades)
(let ((pkgs (mapcar #'car (package-menu--find-upgrades))))
(when pkgs
(message "PACKAGE UPGRADES: %s" pkgs)
(require 'notifications)
(notifications-notify :title "Emacs Package Upgrades"
:body (format "%s" pkgs))))))
(if (get-buffer "*Packages*")
(with-current-buffer (get-buffer "*Packages*")
(package-menu-refresh)
(funcall #'check))
(save-window-excursion (list-packages))
(with-current-buffer (get-buffer "*Packages*")
(funcall #'check)))))
--8<---------------cut here---------------end--------------->8---
If you want, you could run that from an idle timer.
Bye,
Tassilo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-25 15:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-25 14:17 package management - auto check for updates? Neal Becker
2014-03-25 15:56 ` Tassilo Horn
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.